Part Number Hot Search : 
PKS604F 74CBT ADP3197 Q6004L4 103LF NTE5823 1N4934L DFLZ20
Product Description
Full Text Search
 

To Download XC2237M-72FXXL Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  data sheet v2.1 2011-07 microcontrollers 16/32-bit architecture xc2238m, xc2237m 16/32-bit single-chip microcontroller with 32-bit performance xc2000 family / base line
edition 2011-07 published by infineon technologies ag 81726 munich, germany ? 2011 infineon technologies ag all rights reserved. legal disclaimer the information given in this document shall in no event be regarded as a guarantee of conditions or characteristics. with respect to any ex amples or hints given herein, any typi cal values stated herein and/or any information regarding the application of the device, infi neon technologies hereby disclaims any and all warranties and liabilities of any kind, including without limitation, warranties of non-infringement of intellectual property rights of any third party. information for further information on technology, delivery terms and conditions and prices, please contact the nearest infineon technologies office ( www.infineon.com ). warnings due to technical requirements, components may contain dangerous substances. for information on the types in question, please contact the nearest infineon technologies office. infineon technologies components may be used in life-suppo rt devices or systems only with the express written approval of infineon technologies, if a failure of such components can reasonably be expected to cause the failure of that life-support device or system or to affect the safety or effectiveness of that device or system. life support devices or systems are intended to be implanted in the human body or to support and/or maintain and sustain and/or protect human life. if they fail, it is reasonable to assume that the health of the user or other persons may be endangered.
data sheet v2.1 2011-07 microcontrollers 16/32-bit architecture xc2238m, xc2237m 16/32-bit single-chip microcontroller with 32-bit performance xc2000 family / base line
xc2238m, xc2237m xc2000 family / base line data sheet v2.1, 2011-07 trademarks c166 ? , tricore ? , and dave ? are trademarks of infineon technologies ag. xc223xm revision history: v2.1, 2011-07 previous version(s): v2.0, 2009-03 page subjects (major changes since last revisions) 9 f xc2239 replaced with xc2237 27 id registers added 73 adc capacitances correct ed (typ. vs. max.) 77 conditions relaxed for f int range for f wu adapted according to pcn 2010-013-a added startup time from power-on t spo more detailled specification of t ssb 106 quality declarations added we listen to your comments is there any information in this document t hat you feel is wrong, unclear or missing? your feedback will help us to continuousl y improve the quality of this document. please send your proposal (including a reference to this document) to: mcdocu.comments@infineon.com
xc2238m, xc2237m xc2000 family / base line table of contents data sheet 5 v2.1, 2011-07 1 summary of features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.1 basic device types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 1.2 special device types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 1.3 definition of feature variants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2 general device information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 2.1 pin configuration and definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 2.2 identification registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 3 functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 3.1 memory subsystem and organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 3.2 central processing unit (cpu) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 3.3 memory protection unit (mpu) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 3.4 memory checker module (mchk) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 3.5 interrupt system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 3.6 on-chip debug support (ocds) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 3.7 capture/compare unit (capcom2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 3.8 capture/compare units ccu6x . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 3.9 general purpose timer (gpt12e) unit . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 3.10 real time clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 3.11 a/d converters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 3.12 universal serial interface channel modules (usic) . . . . . . . . . . . . . . . . . 49 3.13 multican module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 3.14 system timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 3.15 watchdog timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 3.16 clock generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 3.17 parallel ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 3.18 instruction set summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 4 electrical parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 4.1 general parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 4.1.1 absolut maximum rating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 4.1.2 operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 4.1.3 pad timing definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 4.1.4 parameter interpretati on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 4.2 dc parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 4.2.1 dc parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 4.2.2 dc parameters for lower voltage area . . . . . . . . . . . . . . . . . . . . . . . . 66 4.2.3 power consumption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 4.3 analog/digital converter parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 4.4 system parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 4.5 flash memory parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 table of contents
xc2238m, xc2237m xc2000 family / base line table of contents data sheet 6 v2.1, 2011-07 4.6 ac parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 4.6.1 testing waveforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 4.6.2 definition of internal timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 4.6.2.1 phase locked loop (pll) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 4.6.2.2 wakeup clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 4.6.2.3 selecting and changing the operating frequency . . . . . . . . . . . . . . 87 4.6.3 external clock input parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 4.6.4 pad properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 4.6.5 synchronous serial interface timing . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 4.6.6 debug interface timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 5 package and reliability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 5.1 packaging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 5.2 thermal considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 5.3 quality declarations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
xc2238m, xc2237m xc2000 family / base line summary of features data sheet 7 v2.1, 2011-07 16/32-bit single-chip microcontr oller with 32-bit performance xc223xm (xc2000 family) 1 summary of features for a quick overview and easy reference, th e features of the xc223xm are summarized here. ? high-performance cpu with five-stage pipeline and mpu ? 12.5 ns instruction cycle at 80 mh z cpu clock (single-cycle execution) ? one-cycle 32-bit addition and subtraction with 40-bit result ? one-cycle multiplication (16 16 bit) ? background division (3 2 / 16 bit) in 21 cycles ? one-cycle multiply -and-accumulate (mac) instructions ? enhanced boolean bit manipulation facilities ? zero-cycle jump execution ? additional instructions to support hll and operating systems ? register-based design with mult iple variable register banks ? fast context switching support with two additional local register banks ? 16 mbytes total linear address space for code and data ? 1024 bytes on-chip special function register area (c166 family compatible) ? integrated memory protection unit (mpu) ? interrupt system with 16 priority levels for up to 96 sources ? selectable external inputs for interrupt generation and wake-up ? fastest sample-rate 12.5 ns ? eight-channel in terrupt-driven single- cycle data transfer with peripheral event controller (pec), 24- bit pointers cover total address space ? clock generation from internal or external clock sources, using on-chip pll or prescaler ? hardware crc-checker with programmabl e polynomial to supervise on-chip memory areas ? on-chip memory modules ? 8 kbytes on-chip stand-by ram (sbram) ? 2 kbytes on-chip dual-port ram (dpram) ? up to 16 kbytes on-chip data sram (dsram) ? up to 32 kbytes on-chip program/data sram (psram) ? up to 832 kbytes on-chip pr ogram memory (f lash memory) ? memory content protection through error correction code (ecc) ? on-chip peripheral modules ? multi-functional general purpose timer unit with 5 timers ? 16-channel general purpose capture/compare unit (capcom2) ? two capture/compare units for flexible pwm signal generation (ccu6x)
xc2238m, xc2237m xc2000 family / base line summary of features data sheet 8 v2.1, 2011-07 ? two synchronizable a/d converters wit h a total of up to 9 channels, 10-bit resolution, conversi on time below 1 s, optional data preprocessing (data reduction, range check), broken wire detection ? up to 6 serial interface channels to be used as uart, lin, high-speed synchronous channel (spi), iic bus interf ace (10-bit addressing, 400 kbit/s), iis interface ? on-chip multican interface (rev. 2.0b active) with up to 256 message objects (full can/basic can) on up to 6 can nodes and gateway functionality ? on-chip system timer and on-chip real time clock ? single power supply from 3.0 v to 5.5 v ? programmable watchdog timer and oscillator watchdog ? up to 40 general purpose i/o lines ? on-chip bootstrap loaders ? supported by a full range of development tools including c compilers, macro- assembler packages, emulators, evalua tion boards, hll debuggers, simulators, logic analyzer disassemblers, programming boards ? on-chip debug support via device acce ss port (dap) or jtag interface ? 64-pin green lqfp package, 0.5 mm (19.7 mil) pitch
xc2238m, xc2237m xc2000 family / base line summary of features data sheet 9 v2.1, 2011-07 ordering information the ordering code for an infineon microcontroller provides an exact reference to a specific product. this ordering code identifies: ? the function set of the corresponding product type ? the temperature range: ? saf-?: -40c to 85c ? sah-?: -40c to 110c ? the package and the type of delivery. for ordering codes for the xc223xm please contact your sales representative or local distributor. this document describes several derivatives of the xc223xm group: basic device types are readily available and special device types are only available on request. as this document refers to all of these deri vatives, some descriptions may not apply to a specific product, in particular to the special device types. for simplicity the term xc223xm is used for all derivatives throughout this document. 1.1 basic device types basic device types are available and can be ordered through infineon?s direct and/or distribution channels. table 1 synopsis of xc223xm basic device types derivative 1) 1) xx is a placeholder for the available speed grade (in mhz). flash memory 2) 2) specific information about the on-chip flash memory in table 3 . psram dsram 3) 3) all derivatives additionally provide 8 kbytes sbram and 2 kbytes dpram. capt./comp. modules adc 4) chan. 4) specific information about the available channels in table 5 . analog input channels are listed for each analog/digital converter module separately (adc0 + adc1). interfaces 4) xc2237m- 104fxxl 832 kbytes 32 kbytes 16 kbytes cc2 ccu60/3 7 + 2 6 can nodes 6 serial chan.
xc2238m, xc2237m xc2000 family / base line summary of features data sheet 10 v2.1, 2011-07 1.2 special device types special device types are only available for high-volume applications on request. table 2 synopsis of xc223xm special device types derivative 1) 1) xx is a placeholder for the available speed grade (in mhz). flash memory 2) 2) specific information about the on-chip flash memory in table 3 . psram dsram 3) 3) all derivatives additionally provide 8 kbytes sbram and 2 kbytes dpram. capt./comp. modules adc 4) chan. 4) specific information about the available channels in table 5 . analog input channels are listed for each analog/digital converter module separately (adc0 + adc1). interfaces 4) xc2237m- 72fxxl 576 kbytes 32 kbytes 16 kbytes cc2 ccu60/1 7 + 2 6 can nodes 6 serial chan. xc2237m- 56fxxl 448 kbytes 16 kbytes 16 kbytes cc2 ccu60/1 7 + 2 6 can nodes 6 serial chan. xc2238m- 104fxxl 832 kbytes 32 kbytes 16 kbytes cc2 ccu60/1 7 + 2 3 can nodes 4 serial chan. xc2238m- 72fxxl 576 kbytes 32 kbytes 16 kbytes cc2 ccu60/1 7 + 2 3 can nodes 4 serial chan. xc2238m- 56fxxl 448 kbytes 16 kbytes 16 kbytes cc2 ccu60/1 7 + 2 3 can nodes 4 serial chan.
xc2238m, xc2237m xc2000 family / base line summary of features data sheet 11 v2.1, 2011-07 1.3 definition of feature variants the xc223xm types are offered with several flash memory sizes. table 3 describes the location of the available memory areas for each flash memory size. the xc223xm types are offered with different interface options. table 5 lists the available channels for each option. table 3 flash memory allocation total flash size flash area a 1) 1) the uppermost 4-kbyte sector of the first flash segment is reserved for internal use (c0?f000 h to c0?ffff h ). flash area b flash area c 832 kbytes c0?0000 h c0?efff h c1?0000 h cc?ffff h n.a. 576 kbytes c0?0000 h c0?efff h c1?0000 h c7?ffff h cc?0000 h cc?ffff h 448 kbytes c0?0000 h c0?efff h c1?0000 h c5?ffff h cc?0000 h cc?ffff h table 4 flash memory module allocation (in kbytes) total flash size flash 0 1) 1) the uppermost 4-kbyte sector of the first flash segment is reserved for internal use (c0?f000 h to c0?ffff h ). flash 1flash 2flash 3 832 kbytes 256 256 256 64 576 kbytes 256 256 --- 64 448 kbytes 256 128 --- 64 table 5 interface channel association total number available channels 7 adc0 channels ch0, ch2, ch4, ch8, ch10, ch13, ch15 2 adc1 channels ch0, ch4 6 can nodes can0, can1, can2, can3, can4, can5 256 message objects 3 can nodes can0, can1, can2 64 message objects 4 serial channels u0c0, u0c1, u1c0, u1c1 6 serial channels u0c0, u0c1, u1c0, u1c1, u2c0, u2c1
xc2238m, xc2237m xc2000 family / base line summary of features data sheet 12 v2.1, 2011-07 the xc223xm types are offered with several sram memory sizes. figure 1 shows the allocation rules for psram and dsram. note that the rules differ: ? psram allocation starts from the lower address ? dsram allocation starts from the higher address for example 8 kbytes of psram will be allocated at e0?0000h-e0?1fffh and 8 kbytes of dsram will be at 00?c000h-00?dfffh. figure 1 sram allocation mc_xc_sram_allocation available psram reserved for psram e0'0000h (e8'0000h) available dsram reserved for dsram e7'ffffh (ef'ffffh) 00'8000h 00'dfffh
xc2238m, xc2237m xc2000 family / base line general device information data sheet 13 v2.1, 2011-07 2 general device information the xc223xm series (16/32-bit single-chip mi crocontroller with 32-bit performance) is a part of the infineon xc2000 family of full-f eature single-chip cmos microcontrollers. these devices extend the functionality and performance of the c166 family in terms of instructions (mac unit), peripherals, and sp eed. they combine high cpu performance (up to 80 million instructions per second) with extended peripheral functionality and enhanced io capabilities. optimized peripherals can be adapted flexibly to meet the application requirements. these derivatives utilize clock generation via pll and internal or external clock sources. on-chip memory modules include program flash, program ram, and data ram. figure 2 xc223xm logic symbol mc_xy _logsymb 64 port 2 11 bit port 6 2 bit port 7 1 bit v agnd (1) v aref (1) v ddp (9) v ss (4) v ddi1 (3) xtal1 xtal2 esr0 port 10 16 bit port 15 2 bit port 5 7 bit via port pins dap/jtag 2 / 4 bit trst debug 2 bit testm porst v ddim (1)
xc2238m, xc2237m xc2000 family / base line general device information data sheet 14 v2.1, 2011-07 2.1 pin configuration and definition the pins of the xc223xm are described in detail in table 6 , which includes all alternate functions. for further explanat ions please refer to the footnotes at the end of the table. the following figure summarizes all pins, show ing their locations on t he four sides of the package. figure 3 xc223xm pin configuration (top view) mc_xy_pin64 v ddpa 16 p15 .0 15 14 13 p6.1 12 p6.0 11 v ddim 10 9 8 7 6 5 trst 4 testm 3 v ddpb 2 v ss 1 p7 .0 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 v ddpb esr0 porst xtal1 xtal2 p10.15 p 10.1 4 v ddi1 p10.13 p10.12 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 v ss v ddpb p5.8 p5 .10 p5 .13 p5 .15 v ddi1 p2.0 p2.1 p2.2 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 p10 .2 v ddi1 p2 .10 p10 .3 p10 .4 p10 .5 p10 .6 p10 .7 v ddpb lqfp64 p15 .4 p5.4 v ar ef v agn d p5.0 p5.2 v ddpb v ss v ddpb p10 .0 p10 .1 p2 .9 p2 .7 p2 .8 p1 0.1 1 p1 0.1 0 p1 0.9 p1 0.8 v ddpb v ss v dd pb p2.3 p2.4 p2.5 p2.6
xc2238m, xc2237m xc2000 family / base line general device information data sheet 15 v2.1, 2011-07 key to pin definitions ? ctrl. : the output signal for a port pin is selected by bit field pc in the associated register px_iocry. output o0 is selected by setting the respective bit field pc to 1x00 b , output o1 is selected by 1x01 b , etc. output signal oh is controlled by hardware. ? type : indicates the pad type and its power supply domain (a, b, m, 1). ? st: standard pad ? sp: special pad e.g. xtalx ? dp: double pad - can be used as standard or high speed pad ? in: input only pad ? ps: power supply pad table 6 pin definitions and functions pin symbol ctrl. type function 3 testm iin/b testmode enable enables factory test mode s, must be held high for normal operation (connect to v ddpb ). an internal pull-up device will hold this pin high when nothing is driving it. 4trst iin/b test-system reset input for normal system operation, pin trst should be held low. a high level at this pin at the rising edge of porst activates the xc223xm?s debug system. in this case, pin trst must be driven low once to reset the debug system. an internal pull-down device will hold this pin low when nothing is driving it. 5 p7.0 o0 / i st/b bit 0 of port 7, general purpose input/output t3out o1 st/b gpt12e timer t3 toggle latch output t6out o2 st/b gpt12e timer t6 toggle latch output tdo_a oh / ih st/b jtag test data output / dap1 input/output if dap pos. 0 or 2 is selected during start-up, an internal pull-down device will hold this pin low when nothing is driving it. esr2_1 i st/b esr2 trigger input 1 rxdc4b i st/b can node 4 receive data input
xc2238m, xc2237m xc2000 family / base line general device information data sheet 16 v2.1, 2011-07 7 p6.0 o0 / i da/a bit 0 of port 6, general purpose input/output emux0 o1 da/a external analog mux co ntrol output 0 (adc0) txdc2 o2 da/a can node 2 transmit data output brkout o3 da/a ocds break signal output adcx_reqg tyg ida/a external request ga te input for adc0/1 u1c1_dx0e i da/a usic1 channel 1 shift data input 8 p6.1 o0 / i da/a bit 1 of port 6, general purpose input/output emux1 o1 da/a external analog mux co ntrol output 1 (adc0) t3out o2 da/a gpt12e timer t3 toggle latch output u1c1_dout o3 da/a usic1 channel 1 shift data output adcx_reqt rye ida/a external request trig ger input for adc0/1 rxdc2e i da/a can node 2 receive data input esr1_6 i da/a esr1 trigger input 6 10 p15.0 i in/a bit 0 of port 15, general purpose input adc1_ch0 i in/a analog input ch annel 0 for adc1 11 p15.4 i in/a bit 4 of port 15, general purpose input adc1_ch4 i in/a analog input ch annel 4 for adc1 t6ina i in/a gpt12e timer t6 count/gate input 12 v aref - ps/a reference voltage for a/d converters adc0/1 13 v agnd - ps/a reference ground for a/d converters adc0/1 14 p5.0 i in/a bit 0 of port 5, general purpose input adc0_ch0 i in/a analog input ch annel 0 for adc0 15 p5.2 i in/a bit 2 of port 5, general purpose input adc0_ch2 i in/a analog input ch annel 2 for adc0 tdi_a i in/a jtag test data input table 6 pin definitions and functions (cont?d) pin symbol ctrl. type function
xc2238m, xc2237m xc2000 family / base line general device information data sheet 17 v2.1, 2011-07 19 p5.4 i in/a bit 4 of port 5, general purpose input adc0_ch4 i in/a analog input ch annel 4 for adc0 t3euda i in/a gpt12e timer t3 external up/down control input tms_a i in/a jtag test mode selection input 20 p5.8 i in/a bit 8 of port 5, general purpose input adc0_ch8 i in/a analog input ch annel 8 for adc0 adc1_ch8 i in/a analog input ch annel 8 for adc1 ccu6x_t12h rc iin/a external run control in put for t12 of ccu60/1 ccu6x_t13h rc iin/a external run control in put for t13 of ccu60/1 u2c0_dx0f i in/a usic2 channel 0 shift data input 21 p5.10 i in/a bit 10 of port 5, general purpose input adc0_ch10 i in/a analog input channel 10 for adc0 adc1_ch10 i in/a analog input channel 10 for adc1 brkin_a iin/a ocds break signal input u2c1_dx0f i in/a usic2 channel 1 shift data input ccu61_t13 hra iin/a external run control input for t13 of ccu61 22 p5.13 i in/a bit 13 of port 5, general purpose input adc0_ch13 i in/a analog input channel 13 for adc0 23 p5.15 i in/a bit 15 of port 5, general purpose input adc0_ch15 i in/a analog input channel 15 for adc0 rxdc2f i in/a can node 2 receive data input 25 p2.0 o0 / i st/b bit 0 of port 2, general purpose input/output txdc5 o1 st/b can node 5 transmit data output rxdc0c i st/b can node 0 receive data input t5inb i st/b gpt12e timer t5 count/gate input table 6 pin definitions and functions (cont?d) pin symbol ctrl. type function
xc2238m, xc2237m xc2000 family / base line general device information data sheet 18 v2.1, 2011-07 26 p2.1 o0 / i st/b bit 1 of port 2, general purpose input/output txdc0 o1 st/b can node 0 transmit data output rxdc5c i st/b can node 5 receive data input t5eudb i st/b gpt12e timer t5 external up/down control input esr1_5 i st/b esr1 trigger input 5 27 p2.2 o0 / i st/b bit 2 of port 2, general purpose input/output txdc1 o1 st/b can node 1 transmit data output esr2_5 i st/b esr2 trigger input 5 28 p2.3 o0 / i st/b bit 3 of port 2, general purpose input/output u0c0_dout o1 st/b usic0 channel 0 shift data output cc2_cc16 o3 / i st/b capcom2 cc16io capture inp./ compare out. esr2_0 i st/b esr2 trigger input 0 u0c0_dx0e i st/b usic0 channel 0 shift data input u0c1_dx0d i st/b usic0 channel 1 shift data input rxdc0a i st/b can node 0 receive data input 29 p2.4 o0 / i st/b bit 4 of port 2, general purpose input/output u0c1_dout o1 st/b usic0 channel 1 shift data output txdc0 o2 st/b can node 0 transmit data output cc2_cc17 o3 / i st/b capcom2 cc17io capture inp./ compare out. esr1_0 i st/b esr1 trigger input 0 u0c0_dx0f i st/b usic0 channel 0 shift data input rxdc1a i st/b can node 1 receive data input 30 p2.5 o0 / i st/b bit 5 of port 2, general purpose input/output u0c0_sclk out o1 st/b usic0 channel 0 shift clock output txdc0 o2 st/b can node 0 transmit data output cc2_cc18 o3 / i st/b capcom2 cc18io capture inp./ compare out. u0c0_dx1d i st/b usic0 channel 0 shift clock input esr1_10 i st/b esr1 trigger input 10 table 6 pin definitions and functions (cont?d) pin symbol ctrl. type function
xc2238m, xc2237m xc2000 family / base line general device information data sheet 19 v2.1, 2011-07 31 p2.6 o0 / i st/b bit 6 of port 2, general purpose input/output u0c0_selo 0 o1 st/b usic0 channel 0 select/control 0 output u0c1_selo 1 o2 st/b usic0 channel 1 select/control 1 output cc2_cc19 o3 / i st/b capcom2 cc19io capture inp./ compare out. u0c0_dx2d i st/b usic0 channel 0 shift control input rxdc0d i st/b can node 0 receive data input esr2_6 i st/b esr2 trigger input 6 35 p2.7 o0 / i st/b bit 7 of port 2, general purpose input/output u0c1_selo 0 o1 st/b usic0 channel 1 select/control 0 output u0c0_selo 1 o2 st/b usic0 channel 0 select/control 1 output cc2_cc20 o3 / i st/b capcom2 cc20io capture inp./ compare out. u0c1_dx2c i st/b usic0 channel 1 shift control input rxdc1c i st/b can node 1 receive data input esr2_7 i st/b esr2 trigger input 7 36 p2.8 o0 / i dp/b bit 8 of port 2, general purpose input/output u0c1_sclk out o1 dp/b usic0 channel 1 shift clock output extclk o2 dp/b programmable clock signal output cc2_cc21 o3 / i dp/b capcom2 cc21io capture inp./ compare out. u0c1_dx1d i dp/b usic0 channel 1 shift clock input table 6 pin definitions and functions (cont?d) pin symbol ctrl. type function
xc2238m, xc2237m xc2000 family / base line general device information data sheet 20 v2.1, 2011-07 37 p2.9 o0 / i st/b bit 9 of port 2, general purpose input/output u0c1_dout o1 st/b usic0 channel 1 shift data output txdc1 o2 st/b can node 1 transmit data output cc2_cc22 o3 / i st/b capcom2 cc22io capture inp./ compare out. clkin1 i st/b clock signal input 1 tck_a ih st/b dap0/jtag clock input if jtag pos. a is selected during start-up, an internal pull-up device will hold this pin high when nothing is driving it. if dap pos. 0 is selected during start-up, an internal pull-down device will hold this pin low when nothing is driving it. 38 p10.0 o0 / i st/b bit 0 of port 10, general purpose input/output u0c1_dout o1 st/b usic0 channel 1 shift data output ccu60_cc6 0 o2 st/b ccu60 channel 0 output ccu60_cc6 0ina ist/b ccu60 channel 0 input esr1_2 i st/b esr1 trigger input 2 u0c0_dx0a i st/b usic0 channel 0 shift data input u0c1_dx0a i st/b usic0 channel 1 shift data input 39 p10.1 o0 / i st/b bit 1 of port 10, general purpose input/output u0c0_dout o1 st/b usic0 channel 0 shift data output ccu60_cc6 1 o2 st/b ccu60 channel 1 output ccu60_cc6 1ina ist/b ccu60 channel 1 input u0c0_dx1a i st/b usic0 channel 0 shift clock input u0c0_dx0b i st/b usic0 channel 0 shift data input table 6 pin definitions and functions (cont?d) pin symbol ctrl. type function
xc2238m, xc2237m xc2000 family / base line general device information data sheet 21 v2.1, 2011-07 40 p10.2 o0 / i st/b bit 2 of port 10, general purpose input/output u0c0_sclk out o1 st/b usic0 channel 0 shift clock output ccu60_cc6 2 o2 st/b ccu60 channel 2 output ccu60_cc6 2ina ist/b ccu60 channel 2 input u0c0_dx1b i st/b usic0 channel 0 shift clock input 42 p2.10 o0 / i st/b bit 10 of port 2, general purpose input/output u0c1_dout o1 st/b usic0 channel 1 shift data output u0c0_selo 3 o2 st/b usic0 channel 0 select/control 3 output cc2_cc23 o3 / i st/b capcom2 cc23io capture inp./ compare out. u0c1_dx0e i st/b usic0 channel 1 shift data input capina i st/b gpt12e register caprel capture input 43 p10.3 o0 / i st/b bit 3 of port 10, general purpose input/output ccu60_cou t60 o2 st/b ccu60 channel 0 output u0c0_dx2a i st/b usic0 channel 0 shift control input u0c1_dx2a i st/b usic0 channel 1 shift control input 44 p10.4 o0 / i st/b bit 4 of port 10, general purpose input/output u0c0_selo 3 o1 st/b usic0 channel 0 select/control 3 output ccu60_cou t61 o2 st/b ccu60 channel 1 output u0c0_dx2b i st/b usic0 channel 0 shift control input u0c1_dx2b i st/b usic0 channel 1 shift control input esr1_9 i st/b esr1 trigger input 9 table 6 pin definitions and functions (cont?d) pin symbol ctrl. type function
xc2238m, xc2237m xc2000 family / base line general device information data sheet 22 v2.1, 2011-07 45 p10.5 o0 / i st/b bit 5 of port 10, general purpose input/output u0c1_sclk out o1 st/b usic0 channel 1 shift clock output ccu60_cou t62 o2 st/b ccu60 channel 2 output u2c0_dout o3 st/b usic2 channel 0 shift data output u0c1_dx1b i st/b usic0 channel 1 shift clock input 46 p10.6 o0 / i st/b bit 6 of port 10, general purpose input/output u0c0_dout o1 st/b usic0 channel 0 shift data output txdc4 o2 st/b can node 4 transmit data output u1c0_selo 0 o3 st/b usic1 channel 0 select/control 0 output u0c0_dx0c i st/b usic0 channel 0 shift data input u1c0_dx2d i st/b usic1 channel 0 shift control input ccu60_ctr apa ist/b ccu60 emergency trap input 47 p10.7 o0 / i st/b bit 7 of port 10, general purpose input/output u0c1_dout o1 st/b usic0 channel 1 shift data output ccu60_cou t63 o2 st/b ccu60 channel 3 output u0c1_dx0b i st/b usic0 channel 1 shift data input ccu60_ccp os0a ist/b ccu60 position input 0 rxdc4c i st/b can node 4 receive data input t4inb i st/b gpt12e timer t4 count/gate input table 6 pin definitions and functions (cont?d) pin symbol ctrl. type function
xc2238m, xc2237m xc2000 family / base line general device information data sheet 23 v2.1, 2011-07 51 p10.8 o0 / i st/b bit 8 of port 10, general purpose input/output u0c0_mclk out o1 st/b usic0 channel 0 master clock output u0c1_selo 0 o2 st/b usic0 channel 1 select/control 0 output u2c1_dout o3 st/b usic2 channel 1 shift data output ccu60_ccp os1a ist/b ccu60 position input 1 u0c0_dx1c i st/b usic0 channel 0 shift clock input brkin_b ist/b ocds break signal input t3eudb i st/b gpt12e timer t3 external up/down control input 52 p10.9 o0 / i st/b bit 9 of port 10, general purpose input/output u0c0_selo 4 o1 st/b usic0 channel 0 select/control 4 output u0c1_mclk out o2 st/b usic0 channel 1 master clock output ccu60_ccp os2a ist/b ccu60 position input 2 tck_b ih st/b dap0/jtag clock input if jtag pos. b is selected during start-up, an internal pull-up device will hold this pin high when nothing is driving it. if dap pos. 1 is selected during start-up, an internal pull-down device will hold this pin low when nothing is driving it. t3inb i st/b gpt12e timer t3 count/gate input table 6 pin definitions and functions (cont?d) pin symbol ctrl. type function
xc2238m, xc2237m xc2000 family / base line general device information data sheet 24 v2.1, 2011-07 53 p10.10 o0 / i st/b bit 10 of port 10, general purpose input/output u0c0_selo 0 o1 st/b usic0 channel 0 select/control 0 output ccu60_cou t63 o2 st/b ccu60 channel 3 output u0c0_dx2c i st/b usic0 channel 0 shift control input u0c1_dx1a i st/b usic0 channel 1 shift clock input tdi_b ih st/b jtag test data input if jtag pos. b is selected during start-up, an internal pull-up device will hold this pin high when nothing is driving it. 54 p10.11 o0 / i st/b bit 11 of port 10, general purpose input/output u1c0_sclk out o1 st/b usic1 channel 0 shift clock output brkout o2 st/b ocds break signal output u1c0_dx1d i st/b usic1 channel 0 shift clock input rxdc2b i st/b can node 2 receive data input tms_b ih st/b jtag test mode selection input if jtag pos. b is selected during start-up, an internal pull-up device will hold this pin high when nothing is driving it. 55 p10.12 o0 / i st/b bit 12 of port 10, general purpose input/output u1c0_dout o1 st/b usic1 channel 0 shift data output txdc2 o2 st/b can node 2 transmit data output tdo_b oh / ih st/b jtag test data output / dap1 input/output if dap pos. 1 is selected during start-up, an internal pull-down device will hold this pin low when nothing is driving it. u1c0_dx0c i st/b usic1 channel 0 shift data input u1c0_dx1e i st/b usic1 channel 0 shift clock input table 6 pin definitions and functions (cont?d) pin symbol ctrl. type function
xc2238m, xc2237m xc2000 family / base line general device information data sheet 25 v2.1, 2011-07 56 p10.13 o0 / i st/b bit 13 of port 10, general purpose input/output u1c0_dout o1 st/b usic1 channel 0 shift data output txdc3 o2 st/b can node 3 transmit data output u1c0_selo 3 o3 st/b usic1 channel 0 select/control 3 output u1c0_dx0d i st/b usic1 channel 0 shift data input 58 p10.14 o0 / i st/b bit 14 of port 10, general purpose input/output u1c0_selo 1 o1 st/b usic1 channel 0 select/control 1 output u0c1_dout o2 st/b usic0 channel 1 shift data output esr2_2 i st/b esr2 trigger input 2 u0c1_dx0c i st/b usic0 channel 1 shift data input rxdc3c i st/b can node 3 receive data input 59 p10.15 o0 / i st/b bit 15 of port 10, general purpose input/output u1c0_selo 2 o1 st/b usic1 channel 0 select/control 2 output u0c1_dout o2 st/b usic0 channel 1 shift data output u1c0_dout o3 st/b usic1 channel 0 shift data output u0c1_dx1c i st/b usic0 channel 1 shift clock input 60 xtal2 o sp/m crystal oscillator amplifier output 61 xtal1 i sp/m crystal oscillator amplifier input to clock the device from an external source, drive xtal1, while leaving xtal2 unconnected. voltages on xtal1 must comply to the core supply voltage v ddim . esr2_9 i st/b esr2 trigger input 9 62 porst iin/b power on reset input a low level at this pin resets the xc223xm completely. a spike filter suppresses input pulses <10 ns. input pulses >100 ns safely pass the filter. the minimum duration for a safe recognition should be 120 ns. an internal pull-up device will hold this pin high when nothing is driving it. table 6 pin definitions and functions (cont?d) pin symbol ctrl. type function
xc2238m, xc2237m xc2000 family / base line general device information data sheet 26 v2.1, 2011-07 63 esr0 o0 / i st/b external service request 0 after power-up, esr0 operates as open-drain bidirectional reset with a weak pull-up. u1c0_dx0e i st/b usic1 channel 0 shift data input u1c0_dx2b i st/b usic1 channel 0 shift control input 6 v ddim - ps/m digital core supply voltage for domain m decouple with a ceramic capacitor, see data sheet for details. 24, 41, 57 v ddi1 - ps/1 digital core supply voltage for domain 1 decouple with a ceramic capacitor, see data sheet for details. all v ddi1 pins must be connected to each other. 9 v ddpa - ps/a digital pad supply vo ltage for domain a connect decoupling capacitors to adjacent v ddp / v ss pin pairs as close as possible to the pins. note: the a/d_converters and ports p5, p6 and p15 are fed from supply voltage v ddpa . 2, 16, 18, 32, 34, 48, 50, 64 v ddpb - ps/b digital pad supply vo ltage for domain b connect decoupling capacitors to adjacent v ddp / v ss pin pairs as close as possible to the pins. note: the on-chip voltage regulators and all ports except p5, p6 and p15 are fed from supply voltage v ddpb . 1, 17, 33, 49 v ss - ps/-- digital ground all v ss pins must be connected to the ground-line or ground-plane. note: also the exposed pad is connected internally to v ss . to improve the emc behavior, it is recommended to connect the exposed pad to the board ground. for thermal aspects, please refer to the data sheet. board layout examples are given in an application note. table 6 pin definitions and functions (cont?d) pin symbol ctrl. type function
xc2238m, xc2237m xc2000 family / base line general device information data sheet 27 v2.1, 2011-07 2.2 identification registers the identification registers describe the cu rrent version of the xc223xm and of its modules. table 7 xc223xm identi fication registers short name value address notes scu_idmanuf 1820 h 00?f07e h scu_idchip 3801 h 00?f07c h scu_idmem 30d0 h 00?f07a h scu_idprog 1313 h 00?f078 h jtag_id 0017?e083 h --- marking ees-aa, es-aa or aa
xc2238m, xc2237m xc2000 family / base line functional description data sheet 28 v2.1, 2011-07 3 functional description the architecture of the xc223xm combi nes advantages of risc, cisc, and dsp processors with an advanced per ipheral subsystem in a well -balanced desi gn. on-chip memory blocks allow the design of co mpact systems-on-silicon with maximum performance suited for computing, control, and communication. the on-chip memory blocks (program co de memory and sram, dual-port ram, data sram) and the generic peripherals are connected to the cpu by separate high-speed buses. another bus, the lxbus, connects additional on-chip resources and external resources (see figure 4 ). this bus structure enhances overall system performance by enabling the concurrent operation of several subsystems of the xc223xm. the block diagram gives an overview of the on-chip components and the advanced internal bus structure of the xc223xm. figure 4 block diagram dpram cpu pmu dmu adc0 module 10 -bit 8-bit rtc mchk interrupt & pec ebc lxbus control external bus control dsram system functions clock , reset, power control, standby ram ocds debug support interrupt bus periph eral data bu s analog and digital general purpose io (gpio) ports mc_bl_blockdiagram gpt 5 timers cc2 modules 16 chan. lxb us wdt multi can shared mos for nodes ccu6x modules 3+1 chan. each usicx modules 2 chan. each psram flash memory imb mac unit mpu adc1 module 10 -bit 8-bit
xc2238m, xc2237m xc2000 family / base line functional description data sheet 29 v2.1, 2011-07 3.1 memory subsystem and organization the memory space of the xc223xm is conf igured in the von neumann architecture. in this architecture all internal and extern al resources, including code memory, data memory, registers and i/o ports, are organized in the same linear address space. table 8 xc223xm memory map 1) address area start loc. end loc. area size 2) notes imb register space ff?ff00 h ff?ffff h 256 bytes ? reserved (access trap) f0?0000 h ff?feff h <1 mbyte minus imb registers reserved for epsram e8?8000 h ef?ffff h 480 kbytes mirrors epsram emulated psram e8?0000 h e8?7fff h 32 kbytes with flash timing reserved for psram e0?8000 h e7?ffff h 480 kbytes mirrors psram program sram e0?0000 h e0?7fff h 32 kbytes maximum speed reserved for flash cd?0000 h df?ffff h <1.25 mbytes ? program flash 3 cc?0000 h cc?ffff h 64 kbytes ? program flash 2 c8?0000 h cb?ffff h 256 kbytes ? program flash 1 c4?0000 h c7?ffff h 256 kbytes ? program flash 0 c0?0000 h c3?ffff h 256 kbytes 3) external memory area 40?0000 h bf?ffff h 8 mbytes ? available ext. io area 4) 21?0000 h 3f?ffff h < 2 mbytes minus usic/can reserved 20?bc00 h 20?ffff h 17 kbytes ? usic alternate regs. 20?b000 h 20?bfff h 4 kbytes accessed via ebc multican alternate regs. 20?8000 h 20?afff h 12 kbytes accessed via ebc reserved 20?6000 h 20?7fff h 8 kbytes ? usic registers 20?4000 h 20?5fff h 8 kbytes accessed via ebc multican registers 20?0000 h 20?3fff h 16 kbytes accessed via ebc external memory area 01?0000 h 1f?ffff h < 2 mbytes minus segment 0 sfr area 00?fe00 h 00?ffff h 0.5 kbyte ? dual-port ram 00?f600 h 00?fdff h 2 kbytes ? reserved for dpram 00?f200 h 00?f5ff h 1 kbyte ? esfr area 00?f000 h 00?f1ff h 0.5 kbyte ? xsfr area 00?e000 h 00?efff h 4 kbytes ?
xc2238m, xc2237m xc2000 family / base line functional description data sheet 30 v2.1, 2011-07 this common memory space consists of 16 mbytes organized as 256 segments of 64 kbytes; each segment contains four data pages of 16 kbytes. the entire memory space can be accessed bytewise or wordwise. portions of the on-chip dpram and the register spaces (esfr/sfr) additionally are directly bit addressable. the internal data memory areas and the special function register areas (sfr and esfr) are mapped into segment 0, the system segment. the program management unit (pmu) handles all code fetches and, therefore, controls access to the program memories su ch as flash memory and psram. the data management unit (dmu) handles al l data transfers and, therefore, controls access to the dsram and the on-chip peripherals. both units (pmu and dmu) are connected to the high-speed system bus so that they can exchange data. this is required if operands are read from program memory, code or data is written to the psram, code is fetched from external memory, or data is read from or written to external resources. these in clude peripherals on the lxbus such as usic or multican. the system bus allows concurrent two-wa y communication for maximum transfer performance. up to 32 kbytes of on-chip program sram (psram) are provided to store user code or data. the psram is accessed via the pm u and is optimized for code fetches. a section of the psram with programmab le size can be write-protected. up to 16 kbytes of on-chip data sram (dsram) are used for storage of general user data. the dsram is accessed via a separate in terface and is optimized for data access. 2 kbytes of on-chip dual-port ram (dpram) provide storage for user-defined variables, for the system stack, and for gener al purpose register banks. a register bank can consist of up to 16 word-wide (r0 to r15) and/or byte-wide (rl0, rh0, ?, rl7, rh7) general purpose registers (gprs). the upper 256 bytes of the dpram are direct ly bit addressable. when used by a gpr, any location in the dpram is bit addressable. data sram 00?a000 h 00?dfff h 16 kbytes ? reserved for dsram 00?8000 h 00?9fff h 8 kbytes ? external memory area 00?0000 h 00?7fff h 32 kbytes ? 1) accesses to the shaded areas are reserved. in devices with external bus interface these accesses generate external bus accesses. 2) the areas marked with ? xc2238m, xc2237m xc2000 family / base line functional description data sheet 31 v2.1, 2011-07 8 kbytes of on-chip stand-by sram (sbram) provide storage for system-relevant user data that must be preserved while the major part of the device is powered down. the sbram is accessed via a specific interface and is powered in domain m. 1024 bytes (2 512 bytes) of the address space are reserved for the special function register areas (sfr space and esfr space) . sfrs are word-wide registers which are used to control and monitor functions of the different on-chip units. unused sfr addresses are reserved for future members of the xc2000 family. in order to ensure upward compatibility they should either not be accessed or written with zeros. the on-chip flash memory stores code, constant data, and control data. the on-chip flash memory consists of 1 module of 64 kbytes (preferably for data storage) and modules with a maximum capacity of 256 kb ytes each. each module is organized in sectors of 4 kbytes. the uppermost 4-kbyte sector of segment 0 (located in flash module 0) is used internally to store operation contro l parameters and protection information. note: the actual size of the flash memory depends on the chosen device type. each sector can be separately write protected 1) , erased and programmed (in blocks of 128 bytes). the complete flash area can be read-protected. a user-defined password sequence temporarily unlocks protected areas. the flas h modules combine 128-bit read access with protected and efficient writing algorithms for programming and erasing. dynamic error correction provides extremely high read data security for all read access operations. access to different flash modules can be executed in parallel. for flash parameters, please see section 4.5 . memory content protection the contents of on-chip memories can be pr otected against soft errors (induced e.g. by radiation) by activating the parity mec hanism or the error correction code (ecc). the parity mechanism can detect a single-bit error and prevent the software from using incorrect data or executing incorrect instructions. the ecc mechanism can detect and automatically correct single-bit errors. this supports the stable operation of the system. it is strongly recommended to activate the ecc mechanism wherever possible because this dramatically increases the robustness of an application against such soft errors. 1) to save control bits, sectors are clustered for protection purposes, they remain separate for programming/erasing.
xc2238m, xc2237m xc2000 family / base line functional description data sheet 32 v2.1, 2011-07 3.2 central processing unit (cpu) the core of the cpu consists of a 5-stage execution pipeline with a 2-stage instruction- fetch pipeline, a 16-bit arithmetic and logi c unit (alu), a 32-bit/40-bit multiply and accumulate unit (mac), a register-file providing three register banks, and dedicated sfrs. the alu features a multiply-and-div ide unit, a bit-mask generator, and a barrel shifter. figure 5 cpu block diagram dpram cpu ipip rf r0 r1 gprs r14 r15 r0 r1 gprs r14 r15 ifu injection/ exception handler adu mac mca04917_x.vsd cpucon1 cpucon2 csp ip return stack fifo branch unit prefetch unit vecseg tfr +/- idx0 idx1 qx0 qx1 qr0 qr1 dpp0 dpp1 dpp2 dpp3 spseg sp stkov stkun +/- mrw mcw msw mal +/- mah multiply unit alu division unit multiply unit bit-mask-gen. barrel-shifter +/- mdc psw mdh zeros mdl ones r0 r1 gprs r14 r15 cp wb buffer 2-stage prefetch pipeline 5-stage pipeline r0 r1 gprs r14 r15 pmu dmu dsram ebc peripherals psram flash/rom
xc2238m, xc2237m xc2000 family / base line functional description data sheet 33 v2.1, 2011-07 with this hardware most xc 223xm instructions are executed in a single machine cycle of 12.5 ns with an 80-mhz cpu clock. for example, shift and rotate instructions are always processed during one machine cycle, no ma tter how many bits are shifted. also, multiplication and most ma c instructions execute in one cycle. all multiple-cycle instructions have been optimized so that t hey can be executed very fast; for example, a 32-/16-bit division is started within 4 cycle s while the remaining cycles are executed in the background. another pipeline optimization, the branch target prediction, eliminates the execution time of branch instru ctions if the prediction was correct. the cpu has a register context consisting of up to three register banks with 16 word- wide gprs each at its disposal. one of these register banks is physi cally allocated within the on-chip dpram area. a context pointer (cp) register determines the base address of the active register bank accessed by the cpu at any time. the number of these register bank copies is only restricted by the available internal ram space. for easy parameter passing, a register bank may overlap others. a system stack of up to 32 kwords is provid ed for storage of temporary data. the system stack can be allocated to any location within the address space (preferably in the on-chip ram area); it is accessed by the cpu with th e stack pointer (sp) register. two separate sfrs, stkov and stkun, are implicitly compared with t he stack pointer value during each stack access to detect stack overflow or underflow. the high performance of the cpu hardware im plementation can be be st utilized by the programmer with the highly efficient xc223xm instruction set. this includes the following instruction classes: ? standard arithmetic instructions ? dsp-oriented arithmetic instructions ? logical instructions ? boolean bit manipulation instructions ? compare and loop control instructions ? shift and rotate instructions ? prioritize instruction ? data movement instructions ? system stack instructions ? jump and call instructions ? return instructions ? system contro l instructions ? miscellaneous instructions the basic instruction length is either 2 or 4 bytes. possible operand types are bits, bytes and words. a variety of direct, indirect or immediate addressing modes are provided to specify the required operands.
xc2238m, xc2237m xc2000 family / base line functional description data sheet 34 v2.1, 2011-07 3.3 memory protection unit (mpu) the xc223xm?s memory protection unit (mpu ) protects user-specified memory areas from unauthorized read, write, or instruct ion fetch accesses. the mpu can protect the whole address space including the peripheral area. this completes establisched mechanisms such as the register securi ty mechanism or stack overrun/underrun detection. four protection levels support flexible system programming wh ere operating system, low level drivers, and applications run on se parate levels. each protection level permits different access restri ctions for instructions and/or data. every access is checked (if the mpu is enabled) and an access violating the permission rules will be marked as invalid and leads to a protection trap. a set of protection registers for each protec tion level specifies the address ranges and the access permissions. applications requ iring more than 4 protection levels can dynamically re-program the protection registers. 3.4 memory checker module (mchk) the xc223xm?s memory checker module calc ulates a checksum (f ractional polynomial division) on a block of data, often called cyclic redundancy code (crc). it is based on a 32-bit linear feedback shift register and may, therefore, also be used to generate pseudo-random numbers. the memory checker module is a 16-bit parallel input signature compression circuitry which enables error detection within a block of data stored in me mory, registers, or communicated e.g. via serial communication lines. it reduces the probability of error masking due to repeated error patterns by ca lculating the signature of blocks of data. the polynomial used for operation is configurable, so most of the commonly used polynomials may be used. also, the block size for generating a crc result is configurable via a local counter. an interrupt may be generated if testing the current data block reveals an error. an autonomous crc compare circuitry is included to enable redundant error detection, e.g. to enable higher safety integrity levels. the memory checker module provides enhan ced fault detection (beyond parity or ecc) for data and instructions in volatile and non volatile memories. this is especially important for the safety and reliability of embedded systems.
xc2238m, xc2237m xc2000 family / base line functional description data sheet 35 v2.1, 2011-07 3.5 interrupt system the architecture of the xc223xm supports several mechanisms for fast and flexible response to service requests; these can be generated from various sources internal or external to the microcontroller. any of thes e interrupt requests can be programmed to be serviced by the interrupt controller or by the peripheral event controller (pec). where in a standard interrupt service the current program execution is suspended and a branch to the interrupt vect or table is performed, just one cycle is ?stolen? from the current cpu activity to perform a pec servic e. a pec service implies a single byte or word data transfer between any two memo ry locations with an additional increment of either the pec source pointer, the destinat ion pointer, or both. an individual pec transfer counter is implicitly decremented for each pec service except when performing in the continuous transfer mode. when this counter reaches zero, a standard interrupt is performed to the corresponding source-relate d vector location. pec services are particularly well suited to s upporting the transmission or reception of blocks of data. the xc223xm has eight pec channels, each whith fast interrupt-driven data transfer capabilities. with a minimum interrupt response time of 7/11 1) cpu clocks, the xc223xm can react quickly to the occurrence of non-deterministic events. interrupt nodes and source selection the interrupt system provides 96 physica l nodes with separate control register containing an interrupt request flag, an interrupt enable flag and an interrupt priority bit field. most interrupt sources are assigned to a dedicated node. a particular subset of interrupt sources shares a set of nodes. the source selection can be programmed using the interrupt source selection (issr) registers. external request unit (eru) a dedicated external request unit (eru) is provided to route and preprocess selected on-chip peripheral and external interrupt requests. the eru features 4 programmable input channels with event trigger logic (etl ) a routing matrix and 4 output gating units (ogu). the etl features rising edge, falli ng edge, or both edges event detection. the ogu combines the detected interrupt ev ents and provides filtering capabilities depending on a programmable pattern match or miss. trap processing the xc223xm provides efficient mechanisms to identify and process exceptions or error conditions that arise during run-time, the so-called ?hardware traps?. a hardware trap causes an immediate system reaction simila r to a standard interrupt service (branching 1) depending if the jump cache is used or not.
xc2238m, xc2237m xc2000 family / base line functional description data sheet 36 v2.1, 2011-07 to a dedicated vector table location). the occurrence of a hardware trap is also indicated by a single bit in the trap flag register (tfr ). unless another higher-priority trap service is in progress, a hardware trap will interrupt any ongoing program execution. in turn, hardware trap services can normally not be interrupted by standard or pec interrupts. depending on the package option up to 3 external service request (esr) pins are provided. the esr unit processes their i nput values and allows to implement user controlled trap functions (system requests sr0 and sr1). in this way reset, wakeup and power control can be efficiently realized. software interrupts are supported by the ?trap? instruction in combination with an individual trap (interrupt) number. alternatively to emulate an interrupt by software a program can trigger interrupt requests by wr iting the interrupt request (ir) bit of an interrupt control register. 3.6 on-chip debug support (ocds) the on-chip debug support system built into the xc223xm provides a broad range of debug and emulation features. user softwa re running on the xc223xm can be debugged within the target system environment. the ocds is controlled by an external debugging device via the debug interface. this either consists of the 2-pin device access po rt (dap) or of the jt ag port conforming to ieee-1149. the debug interface can be completed with an optional break interface. the debugger controls the ocds with a set of dedicated registers accessible via the debug interface (dap or jtag). in addition the ocds system can be controlled by the cpu, e.g. by a monitor program. an inject ion interface allows the execution of ocds- generated instructions by the cpu. multiple breakpoints can be triggered by on-chip hardware, by software, or by an external trigger input. single stepping is su pported, as is the in jection of arbitrary instructions and read/write a ccess to the complete internal address space. a breakpoint trigger can be answered with a cpu halt, a mo nitor call, a data transfer, or/and the activation of an external signal. tracing data can be obtained via the debug inte rface, or via the external bus interface for increased performance. tracing of program executio n is supported by the xc2000 family emulation device. the dap interface uses two interface signals, the jtag interface uses four interface signals, to communicate with external circ uitry. the debug interface can be amended with two optional break lines.
xc2238m, xc2237m xc2000 family / base line functional description data sheet 37 v2.1, 2011-07 3.7 capture/compare unit (capcom2) the capcom2 unit supports generation and control of timing sequences on up to 16 channels with a maximum resolution of one system clock cycle (eight cycles in staggered mode). the capcom2 unit is typically used to handle high-speed i/o tasks such as pulse and waveform generation, pulse width modulation (pwm), digital to analog (d/a) conversion, software timing, or time recording with respect to external events. two 16-bit timers (t7/t8) with reload regi sters provide two independent time bases for the capture/compare register array. the input clock for the timers is programmable to several prescaled values of the internal system clock, or may be derived from an over flow/underflow of timer t6 in module gpt2. this provides a wide range or variation for the timer period and resolution and allows precise adjustments to the application-specif ic requirements. in addition, an external count input allows event scheduling for the capt ure/compare registers relative to external events. the capture/compare register array cont ains 16 dual purpose capture/compare registers, each of which may be individual ly allocated to either capcom timer and programmed for capture or compare function. all registers have each one port pin associated with it which serves as an input pin for triggering the capture function, or as an output pin to indicate the occurrence of a compare event. when a capture/compare register has been selected for capture mode, the current contents of the allocated timer will be latched (?captured?) into the capture/compare register in response to an external event at the port pin which is associated with this register. in addition, a specific interrupt request for this capture/compare register is generated. either a positive, a negative, or both a positive and a negative external signal transition at the pin can be selected as the triggering event. the contents of all registers which have been selected for one of the five compare modes are continuously compared with the c ontents of the allocated timers. when a match occurs between the timer value and the value in a capture/compare register, specific actions will be tak en based on the selected compare mode. table 9 compare modes compare modes function mode 0 interrupt-only compare mode; several compare interrupts per timer period are possible mode 1 pin toggles on each compare match; several compare events per timer period are possible
xc2238m, xc2237m xc2000 family / base line functional description data sheet 38 v2.1, 2011-07 mode 2 interrupt-only compare mode; only one compare interrupt per timer period is generated mode 3 pin set ?1? on match; pin reset ?0? on compare timer overflow; only one compare event per timer period is generated double register mode two registers operate on one pin; pin toggles on each compare match; several compare events per timer period are possible single event mode generates single edges or pulses; can be used with any compare mode table 9 compare modes (cont?d) compare modes function
xc2238m, xc2237m xc2000 family / base line functional description data sheet 39 v2.1, 2011-07 figure 6 capcom2 un it block diagram sixteen 16-bit capture/ compare registers mode control (capture or compare) t7 input control t8 input control mc_capcom2_blockdiag cc16irq cc31irq cc17irq t7irq t8irq cc16io cc17io t7in t6ouf f cc t6ouf f cc reload reg. t7rel timer t7 timer t8 reload reg. t8rel cc31io
xc2238m, xc2237m xc2000 family / base line functional description data sheet 40 v2.1, 2011-07 3.8 capture/compare units ccu6x the xc223xm types feature the ccu60, ccu61 unit(s). the ccu6 is a high-resolution capture and compare unit with application-specific modes. it provides inputs to start the time rs synchronously, an important feature in devices with several ccu6 modules. the module provides two independent timers (t12, t13), that can be used for pwm generation, especially for ac motor control. additionally, special control modes for block commutation and multi-phase machines are supported. timer 12 features ? three capture/compare channels, where each channel can be used either as a capture or as a compare channel. ? supports generation of a three-phase pwm (six outputs, individual signals for high- side and low-side switches) ? 16-bit resolution, maximum count frequency = peripheral clock ? dead-time control for each channel to avoid short circuits in the power stage ? concurrent update of the required t12/13 registers ? center-aligned and edge-aligned pwm can be generated ? single-shot mode supported ? many interrupt request sources ? hysteresis-like control mode ? automatic start on a hw event (t 12hr, for synchronization purposes) timer 13 features ? one independent compare channel with one output ? 16-bit resolution, maximum count frequency = peripheral clock ? can be synchronized to t12 ? interrupt generation at period match and compare match ? single-shot mode supported ? automatic start on a hw event (t 13hr, for synchronization purposes) additional features ? block commutation for brushless dc drives implemented ? position detection via hall sensor pattern ? automatic rotational speed measurement for block commutation ? integrated error handling ? fast emergency stop without cpu load via external signal (ctrap ) ? control modes for multi-channel ac drives ? output levels can be selected and adapted to the power stage
xc2238m, xc2237m xc2000 family / base line functional description data sheet 41 v2.1, 2011-07 figure 7 ccu6 block diagram timer t12 can work in capture and/or com pare mode for its three channels. the modes can also be combined. timer t13 can work in compare mode only. the multi-channel control unit generates output patterns that can be modulated by timer t12 and/or timer t13. the modulation sources can be selected and combined for signal modulation. mc_ccu6_blockdiagram .vsd channel 0 channel 1 channel 2 t12 dead- time control input / output control cc62 cout62 cc61 cout61 cc60 cout60 cout63 ctrap channel 3 t13 ccpos0 1 1 1 2 2 2 1 start compare ca p t u r e 3 multi- channel control trap control compare compa re compa re compa re 1 t rap i nput ccpos1 ccpos2 output select output select 3 hall input ccu6 module kernel f sys interrupts txhr
xc2238m, xc2237m xc2000 family / base line functional description data sheet 42 v2.1, 2011-07 3.9 general purpose timer (gpt12e) unit the gpt12e unit is a very flexible multif unctional timer/counter structure which can be used for many different timing tasks such as event timing and counting, pulse width and duty cycle measurements, pulse ge neration, or pulse multiplication. the gpt12e unit incorporates five 16-bit timers organized in two separate modules, gpt1 and gpt2. each timer in each module may either operate independently in a number of different modes or be concate nated with another timer of the same module. each of the three ti mers t2, t3, t4 of module gpt1 can be configured individually for one of four basic modes of operation: time r, gated timer, counter, and incremental interface mode. in timer mode, the input cl ock for a timer is derived from the system clock and divided by a programmable prescaler. counter mode allows timer clocking in reference to external events. pulse width or duty cycle measurement is supported in gated timer mode, where the operation of a timer is controlled by the ?gat e? level on an external input pin. for these purposes each timer has one associated port pi n (txin) which serves as a gate or clock input. the maximum re solution of the timers in modul e gpt1 is 4 system clock cycles. the counting direction (up/down) for each timer can be programmed by software or altered dynamically by an external signal on a port pin (txeud), e.g. to facilitate position tracking. in incremental interface mode the gpt1 ti mers can be directly connected to the incremental position sensor signals a and b through their respective inputs txin and txeud. direction and counting signals are internally derived from these two input signals, so that the contents of the respective timer tx corresponds to the sensor position. the third position sensor signal top0 can be connected to an interrupt input. timer t3 has an output toggle latch (t3otl ) which changes its state on each timer overflow/underflow. the state of this latch may be output on pin t3out e.g. for time out monitoring of external hardware components. it may also be used internally to clock timers t2 and t4 for measuring long time periods with high resolution. in addition to the basic operating modes, t2 and t4 may be configured as reload or capture register for timer t3. a timer used as capture or reload register is stopped. the contents of timer t3 is captured into t2 or t4 in response to a signal at the associated input pin (txin). timer t3 is reloaded with th e contents of t2 or t4 , triggered either by an external signal or a selectable state tr ansition of its toggle latch t3otl. when both t2 and t4 are configured to alternately reload t3 on opposite state transitions of t3otl with the low and high times of a pwm signal, this signal can be continuously generated without software intervention. note: signals t2in, t2eud, t4eud, and t6eud are not connected to pins.
xc2238m, xc2237m xc2000 family / base line functional description data sheet 43 v2.1, 2011-07 figure 8 block diagram of gpt1 mc_gpt_block1 aux. timer t2 2 n :1 t2 mode control capture u/d basic clock f gpt t3con.bps1 t3otl t3out toggle latch t2in t2eud reload core timer t3 t3 mode control t3in t3eud u/d interrupt request (t3irq) t4 mode control u/d aux. timer t4 t4eud t4in reload capture interrupt request (t4irq) interrupt request (t2irq)
xc2238m, xc2237m xc2000 family / base line functional description data sheet 44 v2.1, 2011-07 with its maximum resolution of 2 system clock cycles, the gpt2 module provides precise event control and time measurement. it includes two timers (t5, t6) and a capture/reload register (caprel). both timers can be clocked with an input clock which is derived from the cpu clock via a programma ble prescaler or with external signals. the counting direction (up/down) for each timer can be programmed by software or altered dynamically with an external signal on a por t pin (txeud). concatenation of the timers is supported with the output toggle latch (t6o tl) of timer t6, which changes its state on each timer overflow/underflow. the state of this latch may be used to clock timer t5, and/or it may be output on pin t6out. the overflows/underflows of timer t6 can also be used to clock the capcom2 timers and to initiate a reload from the caprel register. the caprel register can capt ure the contents of timer t5 based on an external signal transition on the corresponding port pin (capin); timer t5 may optionally be cleared after the capture procedure. this allo ws the xc223xm to measure absolute time differences or to perform pulse multiplication without software overhead. the capture trigger (timer t5 to caprel ) can also be generated upon transitions of gpt1 timer t3 inputs t3in and/or t3eud. this is especially advantageous when t3 operates in incremental interface mode.
xc2238m, xc2237m xc2000 family / base line functional description data sheet 45 v2.1, 2011-07 figure 9 block diagram of gpt2 mc_gpt_block 2 gpt2 timer t5 2 n :1 t5 mode control gpt2 caprel t3in/ t3eud caprel mode control t6 mode control reload clear u/d capture clear u/d t5in capin interrupt request (t5irq) interrupt request (t6irq) interrupt request (crirq) basic clock f gpt t6con.bps2 t6in gpt2 timer t6 t6otl t6out t6ouf toggle ff t6eud t5eud
xc2238m, xc2237m xc2000 family / base line functional description data sheet 46 v2.1, 2011-07 3.10 real time clock the real time clock (rtc) module of the xc223xm can be clocked with a clock signal selected from internal source s or external sources (pins). the rtc basically consists of a chain of divider blocks: ? selectable 32:1 and 8:1 dividers (on - off) ? the reloadable 16-bit timer t14 ? the 32-bit rtc timer block (accessible via registers rtch and rtcl) consisting of: ? a reloadable 10-bit timer ? a reloadable 6-bit timer ? a reloadable 6-bit timer ? a reloadable 10-bit timer all timers count up. each timer can generat e an interrupt request. all requests are combined to a common node request. figure 10 rtc block diagram note: the registers associated with the rtc are only affected by a power reset. cnt-register rel-register 10 bits 6 bits 6 bits 10 bits t14 mcb05568b t14-register interrupt sub node rtcint mux 32 pre run cnt int3 cnt int2 cnt int1 cnt int0 f cnt f rtc t14rel 10 bits 6 bits 6 bits 10 bits : mux 8 : refclk
xc2238m, xc2237m xc2000 family / base line functional description data sheet 47 v2.1, 2011-07 the rtc module can be used for different purposes: ? system clock to determine the current time and date ? cyclic time-based interrupt, to provide a system time tick independent of cpu frequency and other resources ? 48-bit timer for long-term measurements ? alarm interrupt at a defined time
xc2238m, xc2237m xc2000 family / base line functional description data sheet 48 v2.1, 2011-07 3.11 a/d converters for analog signal measurement, up to two 10-bit a/d converters (adc0, adc1) with 7 + 2 multiplexed input channels and a sample and hold circuit have been integrated on- chip. 2 inputs can be converted by both a/ d converters. conversions use the successive approximation method. the sample time (to charge the capacitors) and the conversion time are programmable so that they can be adjusted to the external circuit. the a/d converters can also operate in 8-bit conv ersion mode, further reducing the conversion time. several independent conversion result regist ers, selectable inte rrupt requests, and highly flexible conversion sequences prov ide a high degree of programmability to meet the application requirements. both modules can be synchronized to allow parallel sampling of two input channels. for applications that require more analog input channels, external analog multiplexers can be controlled automatically. for app lications that require fewer analog input channels, the remaining channel inputs can be used as digital input port pins. the a/d converters of the xc223xm support tw o types of request sources which can be triggered by several internal and external events. ? parallel requests are activated at the sa me time and then executed in a predefined sequence. ? queued requests are executed in a user-defined sequence. in addition, the conversion of a specific channel can be inserted into a running sequence without disturbing that sequence. all requests are arbitrated according to the priority level assigned to them. data reduction features reduce the number of required cpu access operations allowing the precise evaluation of analog inputs (hig h conversion rate) even at a low cpu speed. result data can be reduced by limit checking or accumulation of results. the peripheral event controller (pec) can be used to control the a/d converters or to automatically store conversion results to a table in memory for later evaluation, without requiring the overhead of enter ing and exiting interrupt routines for each data transfer. each a/d converter contains eight result regi sters which can be concatenated to build a result fifo. wait-f or-read mode can be ena bled for each result r egister to prevent the loss of conversion data. in order to decouple analog inputs from digi tal noise and to avoid input trigger noise, those pins used for analog input can be disc onnected from the digital input stages. this can be selected for each pin separately with the port x digital input disable registers. the auto-power-down feature of the a/d co nverters minimizes the power consumption when no conversion is in progress. broken wire detection for each channel and a multiplexer test mode provide information to verify the proper operat ion of the analog signal sources (e.g. a sensor system).
xc2238m, xc2237m xc2000 family / base line functional description data sheet 49 v2.1, 2011-07 3.12 universal serial interf ace channel modules (usic) the xc223xm features the usic modules usic0, usic1, usic2. each module provides two serial communication channels. the universal serial interface channel (usi c) module is based on a generic data shift and data storage structure which is identi cal for all supported serial communication protocols. each channel supports complete fu ll-duplex operation wit h a basic data buffer structure (one transmit buffer and two receive buffer stages). in addition, the data handling software can use fifos. the protocol part (generation of shift clock/da ta/control signals) is independent of the general part and is handled by pr otocol-specific preprocessors (ppps). the usic?s input/output lines are connected to pins by a pin routing unit. the inputs and outputs of each usic channel can be assigned to different interface pins, providing great flexibility to the application software. all assignments can be made during runtime. figure 11 general structure of a usic module the regular structure of the usic m odule brings the following advantages: ? higher flexibility through configuration wi th same look-and-feel for data management ? reduced complexity for low-level dr ivers serving different protocols ? wide range of protocols with improved performances (baud rate, buffer handling) usic_basic.vsd bus interface dbu 0 dbu 1 control 0 control 1 dsu 0 dsu 1 ppp_a ppp_b ppp_c ppp_d ppp_a ppp_b ppp_c ppp_d pin routing shell buffer & shift structure protocol preprocessors pins bus f sys fractional dividers baud rate generators
xc2238m, xc2237m xc2000 family / base line functional description data sheet 50 v2.1, 2011-07 target protocols each usic channel can receive and transmit data frames with a selectable data word width from 1 to 16 bits in each of the following protocols: ? uart (asynchronous serial channel) ? module capability: maximum baud rate = f sys / 4 ? data frame length programmable from 1 to 63 bits ? msb or lsb first ? lin support (local interconnect network) ? module capability: maximum baud rate = f sys / 16 ? checksum generation under software control ? baud rate detection possible by built-in capture event of baud rate generator ? ssc/spi (synchronous serial channel with or without data buffer) ? module capability: maximum baud rate = f sys / 2, limited by loop delay ? number of data bits programm able from 1 to 63, more with explicit stop condition ? msb or lsb first ? optional control of slave select signals ? iic (inter-ic bus) ? supports baud rates of 100 kbit/s and 400 kbit/s ? iis (inter-ic sound bus) ? module capability: maximum baud rate = f sys / 2 note: depending on the selected functions (such as digital filters, input synchronization stages, sample point adjustment, etc.), the maximum achievable baud rate can be limited. please note that there may be additional delays, such as internal or external propagation delays and driver dela ys (e.g. for collision detection in uart mode, for iic, etc.).
xc2238m, xc2237m xc2000 family / base line functional description data sheet 51 v2.1, 2011-07 3.13 multican module the multican module contains independently operating can nodes with full-can functionality which are able to exchange da ta and remote frames using a gateway function. transmission and reception of can frames is handled in accordance with can specification v2.0 b (active). each can nod e can receive and transmit standard frames with 11-bit identifiers as well as ex tended frames with 29-bit identifiers. all can nodes share a common set of mess age objects. each message object can be individually allocated to one of the can nodes. besides serving as a storage container for incoming and outgoing frames, message objects can be combined to build gateways between the can nodes or to set up a fifo buffer. note: the number of can nodes and messa ge objects depends on the selected device type. the message objects are organized in doubl e-chained linked lists, where each can node has its own list of message objects. a can node stores frames only into message objects that are allocated to its own message object list and it transmits only messages belonging to this message object list. a powerful, command-driven list controller performs all message object list operations. figure 12 block diagram of multican module mc_ multican_ block.vsd multican module kernel interrupt control f can port control can control message object buffer can node 0 linked list control clock control address decoder can node n txdcn rxdcn txdc0 rxdc0 ... ... ...
xc2238m, xc2237m xc2000 family / base line functional description data sheet 52 v2.1, 2011-07 multican features ? can functionality conforming to can specification v2.0 b active for each can node (compliant to iso 11898) ? independent can nodes ? set of independent message objects (shared by the can nodes) ? dedicated control registers for each can node ? data transfer rate up to 1 mbit/s, individually programmable for each node ? flexible and powerful message transfer control and error handling capabilities ? full-can functionality for message objects: ? can be assigned to one of the can nodes ? configurable as transmit or receive objects, or as message buffer fifo ? handle 11-bit or 29-bit id entifiers with programmable a cceptance mask for filtering ? remote monitoring mode, and frame counter for monitoring ? automatic gateway mode support ? 16 individually programmable interrupt nodes ? analyzer mode for can bus monitoring 3.14 system timer the system timer consists of a programmable prescaler and two concatenated timers (10 bits and 6 bits). both timers can gener ate interrupt requests. the clock source can be selected and the timers can also run during power reduction modes. therefore, the system timer enables the software to maintain the current time for scheduling functions or for t he implementation of a clock.
xc2238m, xc2237m xc2000 family / base line functional description data sheet 53 v2.1, 2011-07 3.15 watchdog timer the watchdog timer is one of the fail-sa fe mechanisms which have been implemented to prevent the controller from malfun ctioning for longer periods of time. the watchdog timer is always enabled after an application reset of the chip. it can be disabled and enabled at any time by exec uting the instructions diswdt and enwdt respectively. the software has to service t he watchdog timer before it overflows. if this is not the case because of a hardware or software failure, the watchdog timer overflows, generating a prewarning interrupt and then a reset request. the watchdog timer is a 16-bit timer clock ed with the system clock divided by 16,384 or 256. the watchdog timer register is set to a prespecified reload value (stored in wdtrel) in order to allow further variation of the monitored time interval. each time it is serviced by the application software, the watchdog timer is reloaded and the prescaler is cleared. time intervals between 3.2 s and 13.42 s can be monitored (@ 80 mhz). the default watchdog timer interval after power-up is 6.5 ms (@ 10 mhz). 3.16 clock generation the clock generation unit can generate the system clock signal f sys for the xc223xm from a number of external or internal clock sources: ? external clock signals with pad voltage or core voltage levels ? external crystal or resonator using the on-chip oscillator ? on-chip clock source for oper ation without crystal/resonator ? wake-up clock (ultra-low-power) to further reduce power consumption the programmable on-chip pll with multiple prescalers generates a clock signal for maximum system performance from standard cryst als, a clock input signal, or from the on-chip clock source. see also section 4.6.2 . the oscillator watchdog (owd) generates an in terrupt if the crystal oscillator frequency falls below a certain limit or stops completely. in this ca se, the system can be supplied with an emergency clock to enable operation even after an external clock failure. all available clock signals can be output on one of two selectable pins.
xc2238m, xc2237m xc2000 family / base line functional description data sheet 54 v2.1, 2011-07 3.17 parallel ports the xc223xm provides up to 40 i/o lines wh ich are organized into 4 input/output ports and 2 input ports. all port lines are bit-ad dressable, and all input/output lines can be individually (bit-wise) configured via port cont rol registers. this co nfiguration selects the direction (input/output), push/pull or open-dra in operation, activation of pull devices, and edge characteristics (shape) and driver char acteristics (output current) of the port drivers. the i/o ports are true bidirectional ports which are switched to high impedance state when configured as inputs. during the in ternal reset, all port pins are configured as inputs without pull devices active. all port lines have alternate input or out put functions associat ed with them. these alternate functions can be programmed to be assigned to various port pins to support the best utilization for a given application. for this reason, certain functions appear several times in table 10 . all port lines that are not used for alternate functions may be used as general purpose i/o lines. table 10 summary of the xc223xm?s ports port width i/o connected modules p2 11 i/o can, cc2, gpt12e, usic, dap/jtag p5 7 i analog inputs, ccu6, dap/jtag, gpt12e, can p6 2 i/o adc, can, gpt12e p7 1 i/o can, gpt12e, scu, dap/jtag, usic p10 16 i/o ccu6, usic, dap/jtag, can p15 2 i analog inputs, gpt12e
xc2238m, xc2237m xc2000 family / base line functional description data sheet 55 v2.1, 2011-07 3.18 instruction set summary table 11 lists the instructions of the xc223xm. the addressing modes that can be used with a specific instruction, the function of the instructions, parameters for conditional execution of in structions, and the opcodes for each instruction can be found in the ?instruction set manual? . this document also provides a detailed description of each instruction. table 11 instruction set summary mnemonic description bytes add(b) add word (byte) operands 2 / 4 addc(b) add word (byte) operands with carry 2 / 4 sub(b) subtract word (byte) operands 2 / 4 subc(b) subtract word (byte) operands with carry 2 / 4 mul(u) (un)signed multiply direct gpr by direct gpr (16- 16-bit) 2 div(u) (un)signed divide register mdl by direct gpr (16-/16-bit) 2 divl(u) (un)signed long divide reg. md by direct gpr (32-/16-bit) 2 cpl(b) complement direct word (byte) gpr 2 neg(b) negate direct word (byte) gpr 2 and(b) bitwise and, (word/byte operands) 2 / 4 or(b) bitwise or, (word/byte operands) 2 / 4 xor(b) bitwise exclusive or, (word/byte operands) 2 / 4 bclr/bset clear/set direct bit 2 bmov(n) move (negated) direct bit to direct bit 4 band/bor/bxor and/or/xor dire ct bit with direct bit 4 bcmp compare direct bit to direct bit 4 bfldh/bfldl bitwise modify masked high/low byte of bit-addressable direct word memory with immediate data 4 cmp(b) compare word (byte) operands 2 / 4 cmpd1/2 compare word data to gpr and decrement gpr by 1/2 2 / 4 cmpi1/2 compare word data to gpr and increment gpr by 1/2 2 / 4 prior determine number of sh ift cycles to normalize direct word gpr and store result in direct word gpr 2 shl/shr shift left/right direct word gpr 2
xc2238m, xc2237m xc2000 family / base line functional description data sheet 56 v2.1, 2011-07 rol/ror rotate left/right direct word gpr 2 ashr arithmetic (sign bit) sh ift right direct word gpr 2 mov(b) move word (byte) data 2 / 4 movbs/z move byte operand to word op. with sign/zero extension 2 / 4 jmpa/i/r jump absolute/indirect/re lative if condition is met 4 jmps jump absolute to a code segment 4 jb(c) jump relative if direct bit is set (and clear bit) 4 jnb(s) jump relative if direct bit is not set (and set bit) 4 calla/i/r call absolute/indirect/relativ e subroutine if condition is met 4 calls call absolute subroutine in any code segment 4 pcall push direct word register onto system stack and call absolute subroutine 4 trap call interrupt service routine via immediate trap number 2 push/pop push/pop direct word r egister onto/from system stack 2 scxt push direct word register onto system stack and update register with word operand 4 ret(p) return from intra-segment subroutine (and pop direct word regi ster from system stack) 2 rets return from inter-segment subroutine 2 reti return from interrupt service subroutine 2 sbrk software break 2 srst software reset 4 idle enter idle mode 4 pwrdn unused instruction 1) 4 srvwdt service watchdog timer 4 diswdt/enwdt disable/enable watchdog timer 4 einit end-of-initialization register lock 4 atomic begin atomic sequence 2 extr begin extended register sequence 2 extp(r) begin extended page (and register) sequence 2 / 4 exts(r) begin extended segment (and register) sequence 2 / 4 table 11 instruction set summary (cont?d) mnemonic description bytes
xc2238m, xc2237m xc2000 family / base line functional description data sheet 57 v2.1, 2011-07 nop null operation 2 comul/comac multiply (and accumulate) 4 coadd/cosub add/subtract 4 co(a)shr (arithmetic) shift right 4 coshl shift left 4 coload/store load accumulator/store mac register 4 cocmp compare 4 comax/min maximum/minimum 4 coabs/cornd absolute value/round accumulator 4 comov data move 4 coneg/nop negate accumulator/null operation 4 1) the enter power down mode instruction is not used in the xc223xm, due to the enhanced power control scheme. pwrdn will be correctly dec oded, but will trigger no action. table 11 instruction set summary (cont?d) mnemonic description bytes
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 58 v2.1, 2011-07 4 electrical parameters the operating range for the xc223xm is defin ed by its electrical parameters. for proper operation the specified limits must be respected when integrating the device in its target environment. 4.1 general parameters these parameters are valid for all subseq uent descriptions, un less otherwise noted. 4.1.1 absolut maximum rating conditions stresses above the values listed under ?absolute maximum ratings? may cause permanent damage to the device. this is a stre ss rating only. functional operation of the device at these or any other conditions abov e those indicated in the operational sections of this specification is not implied. expos ure to absolute maximum rating conditions for an extended time may affect device reliability. during absolute maximum rating overload conditions ( v in > v ddp or v in < v ss ) the voltage on v ddp pins with respect to ground ( v ss ) must not exceed the values defined by the absolute maximum ratings. table 12 absolute maximum rating parameters parameter symbol values unit note / test condition min. typ. max. output current on a pin when high value is driven i oh sr -30 ?? ma output current on a pin when low value is driven i ol sr ?? 30 ma overload current i ov sr -10 ? 10 ma 1) 1) overload condition occurs if the input voltage v in is out of the absolute maximum rating range. in this case the current must be limited to the listed values by design measures. absolute sum of overload currents | i ov | sr ?? 100 ma 1) junction temperature t j sr -40 ? 150 c storage temperature t st sr -65 ? 150 c digital supply voltage for io pads and voltage regulators v ddpa , v ddpb sr -0.5 ? 6.0 v voltage on any pin with respect to ground (vss) v in sr -0.5 ? v ddp + 0.5 v v in v ddp(max)
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 59 v2.1, 2011-07 4.1.2 operating conditions the following operating conditions must not be exceeded to ensure correct operation of the xc223xm. all parameters specified in the following sections refer to these operating conditions, unless otherwise noticed. note: typical parameter values refer to room temperature and nominal supply voltage, minimum/maximum para meter values also include conditions of minimum/maximum temperature and minimum/maximum supply voltage. additional details are described where applicable. table 13 operating conditions parameter symbol values unit note / test condition min. typ. max. voltage regulator buffer capacitance for dmp_m c evrm sr 1.0 ? 4.7 f 1) voltage regulator buffer capacitance for dmp_1 c evr1 sr 0.47 ? 2.2 f 1)2) external load capacitance c l sr ? 20 3) ? pf pin out driver= default 4) system frequency f sys sr ?? 100 mhz 5) overload current for analog inputs 6) i ova sr -2 ? 5 ma not subject to production test overload current for digital inputs 6) i ovd sr -5 ? 5 ma not subject to production test overload current coupling factor for analog inputs 7) k ova cc ? 2.5 x 10 -4 1.5 x 10 -3 - i ov <0ma; not subject to production test ? 1.0 x 10 -6 1.0 x 10 -4 - i ov >0ma; not subject to production test overload current coupling factor for digital i/o pins k ovd cc ? 1.0 x 10 -2 3.0 x 10 -2 i ov <0ma; not subject to production test ? 1.0 x 10 -4 5.0 x 10 -3 i ov >0ma; not subject to production test
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 60 v2.1, 2011-07 absolute sum of overload currents | i ov | sr ?? 50 ma not subject to production test digital core supply voltage for domain m 8) v ddim cc ? 1.5 ? digital core supply voltage for domain 1 8) v ddi1 cc ? 1.5 ? digital supply voltage for io pads and voltage regulators v ddp sr 4.5 ? 5.5 v digital ground voltage v ss sr ? 0 ? v 1) to ensure the stability of the voltage regulators the evrs must be buffered with ceramic capacitors. separate buffer capacitors with the recomended values sh all be connected as close as possible to each v ddim and v ddi1 pin to keep the resistance of the board tracks below 2 ohm. connect all v ddi1 pins together. the minimum capacitance value is required for proper operation under all conditions (e.g. temperature). higher values slightly increase the startup time. 2) use one capacitor for each pin. 3) this is the reference load. for big ger capacitive loads, use the derating factors listed in the pad properties section. 4) the timing is valid for pin drivers operating in default current mode (selected after reset). reducing the output current may lead to increased delays or reduced driving capability ( c l ). 5) the operating frequency range may be reduced for specific device types. this is indicated in the device designation (...fxxl). 80 mhz devices are marked ...f80l. 6) overload conditions occur if the standard operating conditions are exceeded, i.e. the voltage on any pin exceeds the specified range: v ov > v ihmax ( i ov > 0) or v ov < v ilmin (( i ov < 0). the absolute sum of input overload currents on all pins may not exceed 50 ma. the supply voltages must remain within the specified limits. proper operation under overload conditions depen ds on the application. overload conditions must not occur on pin xtal1 (powered by v ddim ). 7) an overload current ( i ov ) through a pin injects a certain error current ( i inj ) into the adjacent pins. this error current adds to the respective pins leakage current ( i oz ). the amount of error current depends on the overload current and is defined by the overload coupling factor k ov . the polarity of the injected error current is inverse compared to the polarity of the overload current that produces it.the total current through a pin is | i tot | = | i oz | + (| i ov | k ov ). the additional error current may distort the input voltage on analog inputs. 8) value is controlled by on-chip regulator table 13 operating conditions (cont?d) parameter symbol values unit note / test condition min. typ. max.
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 61 v2.1, 2011-07 4.1.3 pad timing definition if not otherwise noted, all timing parame ters are tested and are valid for the corresponding output pins operating in strong driver, fast edge mode. see also ?pad properties? on page 90 . 4.1.4 parameter interpretation the parameters listed in the following include both the characteristics of the xc223xm and its demands on the system. to aid in correctly in terpreting the pa rameters when evaluating them for a design, they are ma rked accordingly in the column ?symbol?: cc ( c ontroller c haracteristics): the logic of the xc223xm provides signa ls with the specified characteristics. sr ( s ystem r equirement): the external system must pr ovide signals with the specif ied characteristics to the xc223xm.
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 62 v2.1, 2011-07 4.2 dc parameters these parameters are static or average valu es that may be exceeded during switching transitions (e.g. output current). leakage current is strongly dependent on t he operating temperature and the voltage level at the respective pin. the maximum values in the following tables apply under worst case conditions, i.e. maximum temperature and an input level equal to the supply voltage. the value for the leakage current in an a pplication can be determined by using the respective leakage derating formula (see tables) with values from that application. the pads of the xc223xm are designed to o perate in various driver modes. the dc parameter specifications refer to the pad current limits specified in section 4.6.4 . supply voltage restrictions the xc223xm can operate within a wide supply voltage range from 3.0 v to 5.5 v. however, during operation this supply volt age must remain within 10 percent of the selected nominal supply voltage. it cannot vary across the full operating voltage range. because of the supply voltage restrictio n and because electrical behavior depends on the supply voltage, the paramet ers are specified separately for the upper and the lower voltage range. during operation, the supply voltages may only change with a maximum speed of dv/dt < 1 v/ms. during power-on sequences, the supply voltages may only change with a maximum speed of dv/dt < 5 v/ s, i.e. the target supply voltage may be reached earliest after approx. 1 s. note: to limit the speed of supply voltage c hanges, the employment of external buffer capacitors at pins v ddpa / v ddpb is recommended.
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 63 v2.1, 2011-07 pullup/pulldown device behavior most pins of the xc223xm feature pullup or pulldown devices. for some special pins these are fixed; for the port pins t hey can be selected by the application. the specified current values indicate how to load the respective pin depending on the intended signal level. figure 13 shows the current paths. the shaded resistors shown in the figure may be required to compensate system pull currents that do not match the given limit values. figure 13 pullup/pulldown current definition mc_xc2x_pull v ddp v ss pullup pulldown
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 64 v2.1, 2011-07 4.2.1 dc parameters keeping signal levels within the limits spec ified in this table ensures operation without overload conditions. for signal levels outside these specifications, also refer to the specification of the overload current i ov . note: operating conditions apply. table 14 is valid under the following conditions: v ddp 4.5 v; v ddptyp = 5v; v ddp 5.5 v table 14 dc characteristics for upper voltage range parameter symbol values unit note / test condition min. typ. max. pin capacitance (digital inputs/outputs). to be doubled for double bond pins. 1) c io cc ?? 10 pf not subject to production test input hysteresis 2) hys cc 0.11 x v ddp ?? v r s =0ohm absolute input leakage current on pins of analog ports 3) | i oz1 | cc ? 10 200 na v in >0v; v in < v ddp absolute input leakage current for all other pins. to be doubled for double bond pins. 3)1)4) | i oz2 | cc ? 0.2 5 a t j 110 c; v in < v ddp ; v in > v ss ? 0.2 15 a t j 150 c; v in < v ddp ; v in > v ss pull level force current 5) | i plf | sr 250 ?? a 6) pull level keep current 7) | i plk | sr ?? 30 a 6) input high voltage (all except xtal1) v ih sr 0.7 x v ddp ? v ddp + 0.3 v input low voltage (all except xtal1) v il sr -0.3 ? 0.3 x v ddp v output high voltage 8) v oh cc v ddp - 1.0 ?? v i oh i ohmax v ddp - 0.4 ?? v i oh i ohnom 9)
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 65 v2.1, 2011-07 output low voltage 8) v ol cc ?? 1.0 v i ol i olmax ?? 0.4 v i ol i olnom 9) 1) because each double bond pin is conne cted to two pads (standard pad and high-speed pad), it has twice the normal value. for a list of affected pins refer to the pin definitions table in chapter 2. 2) not subject to production test - ve rified by design/characterization. h ysteresis is implemented to avoid metastable states and switching due to internal ground bounce. it cannot suppress switching due to external system noise under all conditions. 3) if the input voltage exceeds the respecti ve supply voltage due to ground bouncing ( v in < v ss ) or supply ripple ( v in > v ddp ), a certain amount of current may flow through the protection diodes. this current adds to the leakage current. an additional error current ( i inj ) will flow if an overload current flows through an adjacent pin. please refer to the definition of the overload coupling factor k ov . 4) the given values are worst-case val ues. in production test, this leakage current is only tested at 125 c; other values are ensured by correlation. for derating, plea se refer to the following descriptions: leakage derating depending on temperature ( t j = junction temperature [c]): i oz = 0.05 x e (1.5 + 0.028 x tj>) [ a]. for example, at a temperature of 95 c the resulting leakage current is 3.2 a. leakage derating depending on voltage level (dv = v ddp - v pin [v]): i oz = i oztempmax - (1.6 x dv) ( a]. this voltage derating formula is an approximation which applies for maximum temperature. 5) drive the indicated minimum current through this pin to change the default pin level driven by the enabled pull device: v pin v ilmax for a pullup; v pin v ihmin for a pulldown. 6) these values apply to the fixed pull-devices in dedi cated pins and to the user-selectable pull-devices in general purpose io pins. 7) limit the current through this pin to the indicated value so that the enabled pull device can keep the default pin level: v pin v ihmin for a pullup; v pin v ilmax for a pulldown. 8) the maximum deliverable output current of a port driv er depends on the selected output driver mode. this specification is not valid for outputs which are switched to open drain mode. in this case the respective output will float and the voltage is determined by the external circuit. 9) as a rule, with decreasing output current the out put levels approach the respective supply level ( v ol -> v ss , v oh -> v ddp ). however, only the levels for nominal output currents are verified. table 14 dc characteristics for upper voltage range (cont?d) parameter symbol values unit note / test condition min. typ. max.
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 66 v2.1, 2011-07 4.2.2 dc parameters for lower voltage area keeping signal levels within the limits spec ified in this table ensures operation without overload conditions. for signal levels outside these specifications, also refer to the specification of the overload current i ov . note: operating conditions apply. table 15 is valid under the following conditions: v ddp 3.0 v; v ddptyp = 3.3 v; v ddp 4.5 v table 15 dc characteristics for lower voltage range parameter symbol values unit note / test condition min. typ. max. pin capacitance (digital inputs/outputs). to be doubled for double bond pins. 1) c io cc ?? 10 pf not subject to production test input hysteresis 2) hys cc 0.07 x v ddp ?? v r s =0ohm absolute input leakage current on pins of analog ports 3) | i oz1 | cc ? 10 200 na v in > v ss ; v in < v ddp absolute input leakage current for all other pins. to be doubled for double bond pins. 3)1)4) | i oz2 | cc ? 0.2 2.5 a t j 110 c; v in < v ddp ; v in > v ss ? 0.2 8 a t j 150 c; v in < v ddp ; v in > v ss pull level force current 5) | i plf | sr 150 ?? 6) pull level keep current 7) | i plk | sr ?? 10 a 6) input high voltage (all except xtal1) v ih sr 0.7 x v ddp ? v ddp + 0.3 v input low voltage (all except xtal1) v il sr -0.3 ? 0.3 x v ddp v output high voltage 8) v oh cc v ddp - 1.0 ?? v i oh i ohmax v ddp - 0.4 ?? v i oh i ohnom 9)
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 67 v2.1, 2011-07 output low voltage 8) v ol cc ?? 1.0 v i ol i olmax ?? 0.4 v i ol i olnom 10) 1) because each double bond pin is conne cted to two pads (standard pad and high-speed pad), it has twice the normal value. for a list of affected pins refer to the pin definitions table in chapter 2. 2) not subject to production test - ve rified by design/characterization. h ysteresis is implemented to avoid metastable states and switching due to internal ground bounce. it cannot suppress switching due to external system noise under all conditions. 3) if the input voltage exceeds the respecti ve supply voltage due to ground bouncing ( v in < v ss ) or supply ripple ( v in > v ddp ), a certain amount of current may flow through the protection diodes. this current adds to the leakage current. an additional error current ( i inj ) will flow if an overload current flows through an adjacent pin. please refer to the definition of the overload coupling factor k ov . 4) the given values are worst-case val ues. in production test, this leakage current is only tested at 125 c; other values are ensured by correlation. for derating, plea se refer to the following descriptions: leakage derating depending on temperature ( t j = junction temperature [c]): i oz = 0.05 x e (1.5 + 0.028 x tj>) [ a]. for example, at a temperature of 95 c the resulting leakage current is 3.2 a. leakage derating depending on voltage level (dv = v ddp - v pin [v]): i oz = i oztempmax - (1.6 x dv) ( a]. this voltage derating formula is an approximation which applies for maximum temperature. 5) drive the indicated minimum current through this pin to change the default pin level driven by the enabled pull device: v pin <= v il for a pullup; v pin >= v ih for a pulldown. 6) these values apply to the fixed pull-devices in dedi cated pins and to the user-selectable pull-devices in general purpose io pins. 7) limit the current through this pin to the indicated value so that the enabled pull device can keep the default pin level: v pin >= v ih for a pullup; v pin <= v il for a pulldown. 8) the maximum deliverable output current of a port driv er depends on the selected output driver mode. this specification is not valid for outputs which are switched to open drain mode. in this case the respective output will float and the voltage is determined by the external circuit. 9) as a rule, with decreasing output current the output le vels approach the respective supply level (vol->vss, voh->vddp). however, only the levels for nominal output currents are verified. 10) as a rule, with decreasing output current the output levels approach the respective supply level ( v ol -> v ss , v oh -> v ddp ). however, only the levels for nominal output currents are verified. table 15 dc characteristics for lower voltage range (cont?d) parameter symbol values unit note / test condition min. typ. max.
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 68 v2.1, 2011-07 4.2.3 power consumption the power consumed by the xc223xm depends on several factors such as supply voltage, operating frequency, active circuits, and operating temperature. the power consumption specified here c onsists of two components: ? the switching current i s depends on the device activity ? the leakage current i lk depends on the device temperature to determine the actual power consumption, always both components, switching current i s and leakage current i lk must be added: i ddp = i s + i lk . note: the power consumption values are not subject to production test. they are verified by design/characterization. to determine the total power consumpti on for dimensioning the external power supply, also the pad driver currents must be considered. the given power consumption parameters and their values refer to specific operating conditions: ? active mode : regular operation, i.e. peripherals are active, code execution out of flash. ? stopover mode : crystal oscillator and pll stopped, flash switched off, clock in domain dmp_1 stopped. note: the maximum values cover the comp lete specified operating range of all manufactured devices. the typical values refer to average devices under typical conditions, such as nominal supply voltage, room temperat ure, application-oriented activity. after a power reset, the decoupling capacitors for v ddim and v ddi1 are charged with the maximum possible current. for additional information, please refer to section 5.2 , thermal considerations . note: operating conditions apply. table 16 switching power consumption parameter symbol values unit note / test condition min. typ. max. power supply current (active) with all peripherals active and evvrs on i sact cc ? 10 + 0.6 x f sys 1) 1) f sys in mhz. 10 + 1.0 x f sys 1) ma 2)3) power supply current in stopover mode, evvrs on i sso cc ? 0.7 2.0 ma
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 69 v2.1, 2011-07 active mode power supply current the actual power supply current in active mode not only depends on the system frequency but also on the configur ation of the xc223xm?s subsystem. besides the power consumed by the device logic the power supply pins also provide the current that flows through the pin output drivers. a small current is consumed because the drivers? input stages are switched. the io power domains can be supplied separately. power domain a ( v ddpa ) supplies the a/d converters and port 6. power domain b ( v ddpb ) supplies the on-chip evvrs and all other ports. during operation domain a draws a maximu m current of 1.5 ma for each active a/d converter module from v ddpa . in fast startup mode (with the flash modules deactivated), the typi cal current is reduced to (3 + 0.6 f sys ) ma. 2) the pad supply voltage pins ( v ddpb ) provide the input current for the on-chip evvrs and the current consumed by the pin output drivers. a small current is consumed because t he drivers input stages are switched. in fast startup mode (with the flash modules deactivated), the typical current is reduced to 3 + 0.6 x f sys . 3) please consider the additional conditions described in section "active mode power supply current".
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 70 v2.1, 2011-07 figure 14 supply current in active mode as a function of frequency note: operating conditions apply. mc_xc2xm_is f sys [mhz] i s [ma] 10 20 40 20 40 80 60 50 60 70 90 100 i sacttyp i sactmax 30 80
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 71 v2.1, 2011-07 note: a fraction of the leakage current flows through domain dmp_a (pin v ddpa ). this current can be calculated as 7 000 e - , with = 5 000 / (273 + 1.3 t j ). for t j = 150c, this results in a current of 160 a. the leakage power consumption can be calculated according to the following formulas: i lk0 = 500 000 e - , with = 3 000 / (273 + b t j ) parameter b must be replaced by ? 1.0 for typical values ? 1.6 for maximum values i lk1 = 600 000 e - , with = 5 000 / (273 + b t j ) parameter b must be replaced by ? 1.0 for typical values ? 1.3 for maximum values table 17 leakage power consumption parameter symbol values unit note / test condition min. typ. max. leakage supply current (dmp_1 powered) 1) 1) all inputs (including pins configured as inputs) are set at 0 v to 0.1 v or at v ddp - 0.1 v to v ddp and all outputs (including pins configured as outputs) are disconnected. i lk1 cc ? 0.03 0.05 ma t j =25c 1) ? 0.5 1.3 ma t j =85c 1) ? 2.1 6.2 ma t j =125c 1) ? 4.4 13.7 ma t j =150c 1)
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 72 v2.1, 2011-07 figure 15 leakage supply current as a function of temperature mc_xy_ilkn t j [c] i lk [ma] 2 6 10 0 50 150 100 -50 4 8 12 14 i lk1max i lk1typ 125
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 73 v2.1, 2011-07 4.3 analog/digital converter parameters these parameters describe the conditions for optimum adc performance. note: operating conditions apply. table 18 adc parameters parameter symbol values unit note / test condition min. typ. max. switched capacitance at an analog input c ainsw cc ? 4 5 pf not subject to production test 1) total capacitance at an analog input c aint cc ? 10 12 pf not subject to production test 1) switched capacitance at the reference input c arefsw cc ? 7 9 pf not subject to production test 1) total capacitance at the reference input c areft cc ? 13 15 pf not subject to production test 1) differential non-linearity error | ea dnl | cc ? 0.8 1.0 lsb not subject to production test gain error | ea gain | cc ? 0.4 0.8 lsb not subject to production test integral non-linearity | ea inl | cc ? 0.8 1.2 lsb not subject to production test offset error | ea off | cc ? 0.5 0.8 lsb not subject to production test analog clock frequency f adci sr 0.5 ? 20 mhz upper voltage range 0.5 ? 16.5 mhz lower voltage range input resistance of the selected analog channel r ain cc ?? 2koh m not subject to production test 1) input resistance of the reference input r aref cc ?? 2koh m not subject to production test 1)
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 74 v2.1, 2011-07 broken wire detection delay against vagnd 2) t bwg cc ?? 50 3) broken wire detection delay against varef 2) t bwr cc ?? 50 4) conversion time for 8-bit result 2) t c8 cc (11 + stc) x t adci + 2 x t sys conversion time for 10-bit result 2) t c10 cc (13 + stc) x t adci + 2 x t sys total unadjusted error |tue| cc ? 12lsb 5) wakeup time from analog powerdown, fast mode 2) t waf cc ?? 4 s wakeup time from analog powerdown, slow mode 2) t was cc ?? 15 s analog reference ground v agnd sr v ss - 0.05 ? 1.5 v analog input voltage range v ain sr v agnd ? v aref v 6) analog reference voltage v aref sr v agnd + 1.0 ? v ddpa + 0.05 v 5) 1) these parameter values cover the complete operat ing range. under relaxed operating conditions (room temperature, nominal supply voltage) the typical values can be used for calculation. 2) this parameter includes the sample time (also the a dditional sample time specified by stc), the time to determine the digital result and the time to load the result register with the conversion result. values for the basic clock t adci depend on programming. 3) the broken wire detection delay against v agnd is measured in numbers of consecutive precharge cycles at a conversion rate of not more t han 500 s. result below 10% (66 h ). 4) the broken wire detection delay against v aref is measured in numbers of c onsecutive precharge cycles at a conversion rate of not more than 10 s. this function is infl uenced by leakage current, in particular at high temperature. result above 80% (332 h ). 5) tue is tested at v aref = v ddpa = 5.0 v, v agnd = 0 v. it is verified by design for all other voltages within the defined voltage range. the specified tue is valid only if the absolute sum of input overload currents on analog port pins (see i ov specification) does no t exceed 10 ma, and if v aref and v agnd remain stable during the measurement time. 6) v ain may exceed v agnd or v aref up to the absolute maximum ratings. however, the conversion result in these cases will be x000 h or x3ff h , respectively. table 18 adc parameters (cont?d) parameter symbol values unit note / test condition min. typ. max.
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 75 v2.1, 2011-07 figure 16 equivalent circuitry for analog inputs a/d converter mcs05570 r sour ce v ain c ext c aint c ains - r ain, on c ains
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 76 v2.1, 2011-07 sample time and conversion time of the x c223xm?s a/d converters are programmable. the timing above can be calculated using table 19 . the limit values for f adci must not be exceeded when selecting the prescaler value. converter timing example a: converter timing example b: table 19 a/d converter computation table globctr.5-0 (diva) a/d converter analog clock f adci inpcrx.7-0 (stc) sample time 1) t s 1) the selected sample time is doubled if broken wire detection is active (due to the presampling phase). 000000 b f sys 00 h t adci 2 000001 b f sys / 2 01 h t adci 3 000010 b f sys / 3 02 h t adci 4 : f sys / (diva+1) : t adci (stc+2) 111110 b f sys / 63 fe h t adci 256 111111 b f sys / 64 ff h t adci 257 assumptions: f sys = 80 mhz (i.e. t sys = 12.5 ns), diva = 03 h , stc = 00 h analog clock f adci = f sys / 4 = 20 mhz, i.e. t adci = 50 ns sample time t s = t adci 2 = 100 ns conversion 10-bit: t c10 = 13 t adci + 2 t sys = 13 50 ns + 2 12.5 ns = 0.675 s conversion 8-bit: t c8 = 11 t adci + 2 t sys = 11 50 ns + 2 12.5 ns = 0.575 s assumptions: f sys = 40 mhz (i.e. t sys = 25 ns), diva = 02 h , stc = 03 h analog clock f adci = f sys / 3 = 13.3 mhz, i.e. t adci = 75 ns sample time t s = t adci 5 = 375 ns conversion 10-bit: t c10 = 16 t adci + 2 t sys = 16 75 ns + 2 25 ns = 1.25 s conversion 8-bit: t c8 = 14 t adci + 2 t sys = 14 75 ns + 2 25 ns = 1.10 s
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 77 v2.1, 2011-07 4.4 system parameters the following parameters specify several aspects which are important when integrating the xc223xm into an application system. note: these parameters are not subject to pr oduction test but verified by design and/or characterization. note: operating conditions apply. table 20 various system parameters parameter symbol values unit note / test condition min. typ. max. short-term deviation of internal clock source frequency 1) 1) the short-term frequency deviation refe rs to a timeframe of a few hours and is measured relative to the current frequency at the beginning of the respec tive timeframe. this parameter is useful to determine a time span for re-triggering a lin synchronization. f int cc -1 ? 1% t j 10 c internal clock source frequency f int cc 4.8 5.0 5.2 mhz wakeup clock source frequency 2) 2) this parameter is tested for the fa stest and the slowest selection. the m edium selections are not subject to production test - verified by design/characterization f wu cc 400 ? 700 khz freqsel= 00 210 ? 390 khz freqsel= 01 140 ? 260 khz freqsel= 10 110 ? 200 khz freqsel= 11 startup time from power- on with code execution from flash t spo cc 1.8 2.2 2.7 ms f wu =500khz startup time from stopover mode with code execution from psram t sso cc 11 / f wu 3) ? 12 / f wu 3) s core voltage (pvc) supervision level v pvc cc v lv - 0.03 v lv v lv + 0.07 4) v 5) supply watchdog (swd) supervision level v swd cc v lv - 0.10 6) v lv v lv + 0.15 v lower voltage range 5) v lv - 0.15 v lv v lv + 0.15 v upper voltage range 5)
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 78 v2.1, 2011-07 conditions for t spo timing measurement the time required for the transition from power-on to base mode is called t spo . it is measured under the following conditions: precondition: the pad supply is valid, i.e. v ddpb is above 3.0 v and remains above 3.0 v even though the xc223xm is starting up. no debugger is attached. start condition: power-on reset is removed (porst = 1). end condition: external pin toggle caused by first user instruction executed from flash after startup. conditions for t sso timing measurement the time required for the transition from stopover to stopover waked-up mode is called t sso . it is measured under the following conditions: precondition: the stopover mode has been entered using the procedure defined in the programmer?s guide. start condition: pin toggle on esr pin triggering the startup sequence. end condition: external pin toggle caused by first user instruction executed from psram after startup. coding of bit fields levxv in swd and pvc configuration registers 3) f wu in mhz 4) this value includes a hysteresis of approximately 50 mv for rising voltage. 5) v lv = selected swd voltage level 6) the limit v lv - 0.10 v is valid for the ok1 leve l. the limit for the ok2 level is v lv - 0.15 v. table 21 coding of bit fields levxv in register swdcon0 code default voltage level notes 1) 0000 b 2.9 v 0001 b 3.0 v lev1v: reset request 0010 b 3.1 v 0011 b 3.2 v 0100 b 3.3 v 0101 b 3.4 v 0110 b 3.6 v 0111 b 4.0 v 1000 b 4.2 v
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 79 v2.1, 2011-07 1001 b 4.5 v lev2v: no request 1010 b 4.6 v 1011 b 4.7 v 1100 b 4.8 v 1101 b 4.9 v 1110 b 5.0 v 1111 b 5.5 v 1) the indicated default levels are selected automatically after a power reset. table 22 coding of bitfields levxv in registers pvcyconz code default voltage level notes 1) 1) the indicated default levels are selected automatically after a power reset. 000 b 0.95 v 001 b 1.05 v 010 b 1.15 v 011 b 1.25 v 100 b 1.35 v lev1v: reset request 101 b 1.45 v lev2v: interrupt request 2) 2) due to variations of the toler ance of both the embedded voltage regulat ors (evr) and the pvc levels, this interrupt can be triggered inadvert ently, even though the core voltage is within the normal range. it is, therefore, recommended not to use the this warning level. 110 b 1.55 v 111 b 1.65 v table 21 coding of bit fields levxv in register swdcon0 (cont?d) code default voltage level notes 1)
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 80 v2.1, 2011-07 4.5 flash memory parameters the xc223xm is delivered with all flash sect ors erased and with no protection installed. the data retention time of the xc223xm?s flash memory (i.e. the time after which stored data can still be retrieved) depends on the number of times the flash memory has been erased and programmed. note: these parameters are not subject to pr oduction test but verified by design and/or characterization. note: operating conditions apply. table 23 flash parameters parameter symbol values unit note / test condition min. typ. max. parallel flash module program/erase limit depending on flash read activity n pp sr ?? 4 1) n fl_rd 1, f sys 80 mhz ?? 1 2) n fl_rd >1 flash erase endurance for security pages n sec sr 10 ?? cycle s t ret 20 years flash wait states 3) n wsflas h sr 1 ?? f sys 8mhz 2 ?? f sys 13 mhz 3 ?? f sys 17 mhz 4 ?? f sys >17mhz erase time per sector/page t er cc ? 7 4) 8.0 ms programming time per page t pr cc ? 3 4) 3.5 ms data retention time t ret cc 20 ?? year s n er 1 000 cycles drain disturb limit n dd sr 32 ?? cycle s
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 81 v2.1, 2011-07 access to the xc223xm flash modules is controlled by the imb. built-in prefetch mechanisms optimize the performance for sequential access. flash access waitstates only affect non-sequential access. due to prefetch mechanisms, the performance for sequential access (depending on the software structure) is only partially influenced by waitstates. number of erase cycles n er sr ?? 15 000 cycle s t ret 5years; valid for up to 64 user- selected sectors (data storage) ?? 1 000 cycle s t ret 20 years 1) all flash module(s) can be erased/programmed while code is executed and/or data is read from only one flash module or from psram. the flash module that delivers code/data can, of course, not be erased/programmed. 2) flash module 3 can be erased/programmed while code is executed and/or data is read from any other flash module. 3) value of imb_imbctrl.wsflash. 4) programming and erase times depend on the internal fl ash clock source. the control state machine needs a few system clock cycles. this increase s the stated durations noticably only at extremely low system clock frequencies. table 23 flash parameters (cont?d) parameter symbol values unit note / test condition min. typ. max.
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 82 v2.1, 2011-07 4.6 ac parameters these parameters describe the dynamic behavior of the xc223xm. 4.6.1 testing waveforms these values are used for characterization and production testing (except pin xtal1). figure 17 input output waveforms figure 18 floating waveforms mcd05556c 0.3 v ddp input signal (driven by tester) output signal (measured) hold time output delay output delay hold time output timings refer to the rising edge of clkout. input timings are calculated from the time, when the input signal reaches v ih or v il , respectively. 0.2 v ddp 0.8 v ddp 0.7 v ddp mca05565 timing reference points v load + 0.1 v v load - 0.1 v v oh - 0.1 v v ol + 0.1 v for timing purposes a port pin is no longer floating when a 100 mv change from load voltage occurs, but begins to float when a 100 mv change from the loaded v oh / v ol level occurs ( i oh / i ol = 20 ma).
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 83 v2.1, 2011-07 4.6.2 definition of internal timing the internal operation of the xc223xm is controlled by the internal system clock f sys . because the system clock signal f sys can be generated from a number of internal and external sources using different mechanisms, the duration of the system clock periods (tcss) and their variation (as well as the derived external timing) depend on the mechanism used to generate f sys . this must be considered when calculating the timing for the xc223xm. figure 19 generation mechanisms for the system clock note: the example of pll operation shown in figure 19 uses a pll factor of 1:4; the example of prescaler operation us es a divider factor of 2:1. the specification of the external timing (ac characteristics) depends on the period of the system clock (tcs). m c _ xc 2 x_ cl oc kgen phase locked loop operation (1:n) f in direct clock drive (1:1) prescaler operation (n:1) f sys f in f sys f in f sys tcs tcs tcs
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 84 v2.1, 2011-07 direct drive when direct drive op eration is selected (syscon0.clksel = 11 b ), the system clock is derived directly from the input clock signal clkin1: f sys = f in . the frequency of f sys is the same as the frequency of f in . in this case the high and low times of f sys are determined by the duty cycle of the input clock f in . selecting bypass operation from the xtal1 1) input and using a divider factor of 1 results in a similar configuration. prescaler operation when prescaler operation is se lected (syscon0.clksel = 10 b , pllcon0.vcoby = 1 b ), the system clock is derived either from the crystal oscillator (input clock signal xtal1) or from the internal clock source through the output prescaler k1 (= k1div+1): f sys = f osc / k1. if a divider factor of 1 is selected, the frequency of f sys equals the frequency of f osc . in this case the high and low times of f sys are determined by the duty cycle of the input clock f osc (external or internal). the lowest system clock frequency results from selecting the maximum value for the divider factor k1: f sys = f osc / 1024. 4.6.2.1 phase locked loop (pll) when pll operation is selected (syscon0.clksel = 10 b , pllcon0.vcoby = 0 b ), the on-chip phase locked loop is enabled and provides the system clock. the pll multiplies the input frequency by the factor f ( f sys = f in f ). f is calculated from the input divider p (= pdiv+1), the multiplication factor n (= ndiv+1), and the output divider k2 (= k2div+1): ( f = n / (p k2)). the input clock can be derived either from an external source at xtal1 or from the on- chip clock source. the pll circuit synchronizes the system clock to the input clock. th is synchronization is performed smoothly so that the system clock frequency does no t change abruptly. adjustment to the input clock continuously changes the frequency of f sys so that it is locked to f in . the slight variation causes a jitter of f sys which in turn affects the duration of individual tcss. 1) voltages on xtal1 must comply to the core supply voltage v ddim .
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 85 v2.1, 2011-07 the timing in the ac characteristics refers to tcss. timing must be calculated using the minimum tcs possible under the given circumstances. the actual minimum value for tcs depends on the jitter of the pll. because the pll is constantly adjusting its output frequency to correspond to the input frequency (from crystal or oscillator), the accumulated jitter is limited. this means that the relative deviation for periods of more than one tcs is lower than for a single tcs (see formulas and figure 20 ). this is especially important for bus cycles using waitstates and for the operation of timers, serial interfaces, etc. for all slower operations and longer periods (e.g. pulse train generation or measurement, lower baudrates, etc.) the deviation caused by the pll jitter is negligible. the value of the accumulated pll jitter depends on the number of consecutive vco output cycles within the respective timefram e. the vco output clo ck is divided by the output prescaler k2 to generate the system clock signal f sys . the number of vco cycles is k2 t , where t is the number of consecutive f sys cycles (tcs). the maximum accumulated jitter (long-term jitter) d tmax is defined by: d tmax [ns] = (220 / (k2 f sys ) + 4.3) this maximum value is applicable, if either the number of clock cycles t > ( f sys / 1.2) or the prescaler value k2 > 17. in all other cases for a timeframe of t tcs the accumulated jitter d t is determined by: d t [ns] = d tmax [(1 - 0.058 k2) (t - 1) / (0.83 f sys - 1) + 0.058 k2] f sys in [mhz] in all formulas. example, for a period of 3 tcss @ 33 mhz and k2 = 4: d max = (220 / (4 33) + 4.3) = 5.97 ns (not applicable directly in this case!) d 3 = 5.97 [(1 - 0.058 4) (3 - 1) / (0.83 33 - 1) + 0.058 4] = 5.97 [0.768 2 / 26.39 + 0.232] = 1.7 ns example, for a period of 3 tcss @ 33 mhz and k2 = 2: d max = (220 / (2 33) + 4.3) = 7.63 ns (not applicable directly in this case!) d 3 = 7.63 [(1 - 0.058 2) (3 - 1) / (0.83 33 - 1) + 0.058 2] = 7.63 [0.884 2 / 26.39 + 0.116] = 1.4 ns
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 86 v2.1, 2011-07 figure 20 approximated accumulated pll jitter note: the specified pll jitter values are va lid if the capacitive load per pin does not exceed c l =20pf. the maximum peak-to-peak noise on th e pad supply voltage (measured between v ddpb pin 100 and v ss pin 1) is limited to a peak-to-peak voltage of v pp = 50 mv. this can be achieved by appropriate blocking of the supply voltage as close as possible to the supply pins and using pcb supply and ground planes. mc_xc 2x_jitter cycles t 0 1 2 3 4 5 6 7 8 acc. jitter d t 20 40 60 80 100 ns f sys = 66 mhz 1 f vco = 132 mhz f vco = 66 mhz 9 f sys = 33 mhz
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 87 v2.1, 2011-07 pll frequency band selection different frequency bands can be selected for the vco so that the operation of the pll can be adjusted to a wide range of input and output frequencies: 4.6.2.2 wakeup clock when wakeup operation is se lected (syscon0.clksel = 00 b ), the system clock is derived from the low-frequency wakeup clock source: f sys = f wu . in this mode, a basic functionality can be maintained without requiring an external clock source and while minimizing the power consumption. 4.6.2.3 selecting and changing the operating frequency when selecting a clock source and the clock generation method, the required parameters must be carefully written to the respective bit fields, to avoid unintended intermediate states. many applications change the fr equency of the system clock ( f sys ) during operation in order to optimize system performance and power consumption. changing the operating frequency also changes the switching currents, which influences the power supply. to ensure proper operation of the on-chip evrs while they generate the core voltage, the operating frequency shall only be changed in certain steps. this prevents overshoots and undershoots of the supply voltage. to avoid the indicated problems, recommended sequences are provided which ensure the intended operation of the clock system interacting with the power system. please refer to the programmer?s guide. table 24 system pll parameters parameter symbol values unit note / test condition min. typ. max. vco output frequency (vco controlled) f vco cc 50 ? 110 mhz vcosel = 00 b 100 ? 160 mhz vcosel = 01 b vco output frequency (vco free-running) f vco cc 10 ? 40 mhz vcosel = 00 b 20 ? 80 mhz vcosel = 01 b
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 88 v2.1, 2011-07 4.6.3 external clock input parameters these parameters specify the external clock generation for the xc223xm. the clock can be generated in two ways: ? by connecting a crystal or ceramic resonator to pins xtal1/xtal2 ? by supplying an external clock signal ? this clock signal can be supplied either to pin xtal1 (core voltage domain) or to pin clkin1 (io voltage domain) if connected to clkin1, the input signal must reach the defined input levels v il and v ih . if connected to xtal1, a minimum amplitude v ax1 (peak-to-peak voltage) is sufficient for the operation of the on-chip oscillator. note: the given clock timing parameters ( t 1 t 4 ) are only valid for an external clock input signal. note: operating conditions apply. table 25 external clock input characteristics parameter symbol values unit note / test condition min. typ. max. oscillator frequency f osc sr 4 ? 40 mhz input = clock signal 4 ? 16 mhz input = crystal or ceramic resonator xtal1 input current absolute value | i il | cc ?? 20 a input clock high time t 1 sr 6 ?? ns input clock low time t 2 sr 6 ?? ns input clock rise time t 3 sr ?? 8ns input clock fall time t 4 sr ?? 8ns input voltage amplitude on xtal1 1) v ax1 sr 0.3 x v ddim ?? v 4 to 16 mhz 0.4 x v ddim ?? v 16 to 25 mhz 0.5 x v ddim ?? v 25 to 40 mhz input voltage range limits for signal on xtal1 v ix1 sr -1.7 + v ddim ? 1.7 v 2)
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 89 v2.1, 2011-07 note: for crystal or ceramic resonator operation, it is strongly recommended to measure the oscillation allowance (negative resistance) in the final target system (layout) to determine the optimu m parameters for o scillator operation. the manufacturers of cryst als and ceramic resonato rs offer an oscillator evaluation service. this evaluation checks the crysta l/resonator specification limits to ensure a reliable oscillator operation. figure 21 external clock drive xtal1 1) the amplitude voltage v ax1 refers to the offset voltage v off . this offset voltage must be stable during the operation and the resulting voltage peaks mu st remain within the limits defined by v ix1 . 2) overload conditions must not occur on pin xtal1. mc_extclock t 1 t 2 t osc = 1/ f osc t 3 t 4 v off v ax1 0.1 v ax1 0.9 v ax1
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 90 v2.1, 2011-07 4.6.4 pad properties the output pad drivers of the xc223xm c an operate in several user-selectable modes. strong driver mode allows controlling ex ternal components requiring higher currents such as power bridges or leds. reducing the driving power of an output pad reduces electromagnetic emissions (eme). in stro ng driver mode, selecting a slower edge reduces eme. the dynamic behavior, i.e. the rise time and fall time, depends on the applied external capacitance that must be charged and disc harged. timing values are given for a capacitance of 20 pf, unless otherwise noted. in general, the performance of a pad driver depends on the available supply voltage v ddp . the following table lists the pad parameters. note: these parameters are not subject to pr oduction test but verified by design and/or characterization. note: operating conditions apply.
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 91 v2.1, 2011-07 table 26 is valid under the following conditions: v ddp 4.5 v; v ddptyp = 5 v; v ddp 5.5 v; c l 20 pf; c l 100 pf; table 26 standard pad parameters for upper voltage range parameter symbol values unit note / test condition min. typ. max. maximum output driver current (absolute value) 1) 1) the total output current that may be drawn at a given time must be lim ited to protect the supply rails from damage. for any group of 16 neighboring output pins , the total output current in each direction ( i ol and - i oh ) must remain below 50 ma. i omax cc ?? 10 ma strong driver ?? 4.0 ma medium driver ?? 0.5 ma weak driver nominal output driver current (absolute value) i onom cc ?? 2.5 ma strong driver ?? 1.0 ma medium driver ?? 0.1 ma weak driver rise and fall times (10% - 90%) t rf cc ?? 4.2 + 0.14 x c l ns strong driver; sharp edge ?? 11.6 + 0.22 x c l ns strong driver; medium edge ?? 20.6 + 0.22 x c l ns strong driver; slow edge ?? 23 + 0.6 x c l ns medium driver ?? 212 + 1.9 x c l ns weak driver
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 92 v2.1, 2011-07 table 27 is valid under the following conditions: v ddp 3.0 v; v ddptyp = 3.3 v; v ddp 4.5 v; c l 20 pf; c l 100 pf; table 27 standard pad parameters for lower voltage range parameter symbol values unit note / test condition min. typ. max. maximum output driver current (absolute value) 1) 1) the total output current that may be drawn at a given time must be lim ited to protect the supply rails from damage. for any group of 16 neighboring output pins , the total output current in each direction ( i ol and - i oh ) must remain below 50 ma. i omax cc ?? 10 ma strong driver ?? 2.5 ma medium driver ?? 0.5 ma weak driver nominal output driver current (absolute value) i onom cc ?? 2.5 ma strong driver ?? 1.0 ma medium driver ?? 0.1 ma weak driver rise and fall times (10% - 90%) t rf cc ?? 6.2 + 0.24 x c l ns strong driver; sharp edge ?? 24 + 0.3 x c l ns strong driver; medium edge ?? 34 + 0.3 x c l ns strong driver; slow edge ?? 37 + 0.65 x c l ns medium driver ?? 500 + 2.5 x c l ns weak driver
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 93 v2.1, 2011-07 4.6.5 synchronous serial interface timing the following parameters are applicable for a usic channel operated in ssc mode. note: these parameters are not subject to pr oduction test but verified by design and/or characterization. note: operating conditions apply; c l = 20 pf . table 28 usic ssc master mode timing for upper voltage range parameter symbol values unit note / test condition min. typ. max. slave select output selo active to first sclkout transmit edge t 1 cc t sys - 8 1) 1) t sys = 1 / f sys ?? ns slave select output selo inactive after last sclkout receive edge t 2 cc t sys - 6 1) ?? ns data output dout valid time t 3 cc -6 ? 9ns receive data input setup time to sclkout receive edge t 4 sr 31 ?? ns data input dx0 hold time from sclkout receive edge t 5 sr -4 ?? ns table 29 usic ssc master mode timing for lower voltage range parameter symbol values unit note / test condition min. typ. max. slave select output selo active to first sclkout transmit edge t 1 cc t sys - 10 1) ?? ns slave select output selo inactive after last sclkout receive edge t 2 cc t sys - 9 1) ?? ns data output dout valid time t 3 cc -7 ? 11 ns
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 94 v2.1, 2011-07 receive data input setup time to sclkout receive edge t 4 sr 40 ?? ns data input dx0 hold time from sclkout receive edge t 5 sr -5 ?? ns 1) t sys = 1 / f sys table 30 usic ssc slave mode timi ng for upper voltage range parameter symbol values unit note / test condition min. typ. max. select input dx2 setup to first clock input dx1 transmit edge 1) 1) these input timings are valid for asyn chronous input signal handling of slave select input, shift clock input, and receive data input (bits dxncr.dsen = 0). t 10 sr 7 ?? ns select input dx2 hold after last clock input dx1 receive edge 1) t 11 sr 7 ?? ns receive data input setup time to shift clock receive edge 1) t 12 sr 7 ?? ns data input dx0 hold time from clock input dx1 receive edge 1) t 13 sr 5 ?? ns data output dout valid time t 14 cc 7 ? 33 ns table 29 usic ssc master mode timing for lower voltage range (cont?d) parameter symbol values unit note / test condition min. typ. max.
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 95 v2.1, 2011-07 table 31 usic ssc slave mode timi ng for lower voltage range parameter symbol values unit note / test condition min. typ. max. select input dx2 setup to first clock input dx1 transmit edge 1) 1) these input timings are valid for asyn chronous input signal handling of slave select input, shift clock input, and receive data input (bits dxncr.dsen = 0). t 10 sr 7 ?? ns select input dx2 hold after last clock input dx1 receive edge 1) t 11 sr 7 ?? ns receive data input setup time to shift clock receive edge 1) t 12 sr 7 ?? ns data input dx0 hold time from clock input dx1 receive edge 1) t 13 sr 5 ?? ns data output dout valid time t 14 cc 8 ? 41 ns
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 96 v2.1, 2011-07 figure 22 usic - ssc master/slave mode timing note: this timing diagram shows a standard configuration where the slave select signal is low-active and the serial clock signal is not shifted and not inverted. t 2 t 1 usic_ssc_tmgx.vsd clock output sclkout data output dout t 3 t 3 t 5 data valid t 4 fi rs t trans mi t edge data input dx0 select output selox active master mode timing slave mode timing t 11 t 10 clock input dx1 data output dout t 14 t 14 data valid data input dx0 select input dx2 active t 13 t 12 transmit edge: with this clock edge , transmit data is shifted to transmit data output . receive edge: with this clock edge , receive data at receive data input is latched . receive edge last receive edge inactive inactive transmit edge inactive inactive first transmit edge receive edge trans mi t edge last receive edge t 5 data valid t 4 data valid t 12 t 13 drawn for brgh .sclkcfg = 00 b . also valid for for sclkcfg = 01 b with inverted sclkout signal.
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 97 v2.1, 2011-07 4.6.6 debug interface timing the debugger can communicate with the xc22 3xm either via the 2-pin dap interface or via the standard jtag interface. debug via dap the following parameters are applicable for communication through the dap debug interface. note: these parameters are not subject to pr oduction test but verified by design and/or characterization. note: operating conditions apply; c l =20pf . table 32 dap interface timing for upper voltage range parameter symbol values unit note / test condition min. typ. max. dap0 clock period t 11 sr 25 1) 1) the debug interface cannot operate faster than the overall system, therefore t 11 t sys . ?? ns dap0 high time t 12 sr 8 ?? ns dap0 low time t 13 sr 8 ?? ns dap0 clock rise time t 14 sr ?? 4ns dap0 clock fall time t 15 sr ?? 4ns dap1 setup to dap0 rising edge t 16 sr 6 ?? ns pad_type= stan dard dap1 hold after dap0 rising edge t 17 sr 6 ?? ns pad_type= stan dard dap1 valid per dap0 clock period 2) 2) the host has to find a suitable sampling poi nt by analyzing the sync telegram response. t 19 cc 17 20 ? ns pad_type= stan dard
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 98 v2.1, 2011-07 figure 23 test clock timing (dap0) table 33 dap interface timing for lower voltage range parameter symbol values unit note / test condition min. typ. max. dap0 clock period t 11 sr 25 1) 1) the debug interface cannot operate faster than the overall system, therefore t 11 t sys . ?? ns dap0 high time t 12 sr 8 ?? ns dap0 low time t 13 sr 8 ?? ns dap0 clock rise time t 14 sr ?? 4ns dap0 clock fall time t 15 sr ?? 4ns dap1 setup to dap0 rising edge t 16 sr 6 ?? ns pad_type= stan dard dap1 hold after dap0 rising edge t 17 sr 6 ?? ns pad_type= stan dard dap1 valid per dap0 clock period 2) 2) the host has to find a suitable sampling poi nt by analyzing the sync telegram response. t 19 cc 12 17 ? ns pad_type= stan dard mc_dap0 0.9 v ddp 0.5 v ddp t 11 t 12 t 13 0.1 v ddp t 15 t 14
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 99 v2.1, 2011-07 figure 24 dap timing host to device figure 25 dap timing device to host note: the transmission timing is determined by the receiving debugger by evaluating the sync-request synchronization pattern telegram. t 16 t 17 dap0 dap1 mc_dap1_rx dap1 mc_dap1_tx t 11 t 19
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 100 v2.1, 2011-07 debug via jtag the following parameters are applicable for communication through the jtag debug interface. the jtag module is fully compliant with ieee1149.1-2000. note: these parameters are not subject to pr oduction test but verified by design and/or characterization. note: operating conditions apply; c l =20pf . table 34 jtag interface timing for upper voltage range parameter symbol values unit note / test condition min. typ. max. tck clock period t 1 sr 50 1) 1) the debug interface cannot operate faster than the overall system, therefore t 1 t sys . ?? ns 2) 2) under typical conditions, the interface ca n operate at transfer rates up to 20 mhz. tck high time t 2 sr 16 ?? ns tck low time t 3 sr 16 ?? ns tck clock rise time t 4 sr ?? 8ns tck clock fall time t 5 sr ?? 8ns tdi/tms setup to tck rising edge t 6 sr 6 ?? ns tdi/tms hold after tck rising edge t 7 sr 6 ?? ns tdo valid from tck falling edge (propagation delay) 3) 3) the falling edge on tck is used to generate the tdo timing. t 8 cc ? 25 29 ns tdo high impedance to valid output from tck falling edge 4)3) 4) the setup time for tdo is given implicitly by the tck cycle time. t 9 cc ? 25 29 ns tdo valid output to high impedance from tck falling edge 3) t 10 cc ? 25 29 ns tdo hold after tck falling edge 3) t 18 cc 5 ?? ns
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 101 v2.1, 2011-07 table 35 jtag interface timing for lower voltage range parameter symbol values unit note / test condition min. typ. max. tck clock period t 1 sr 50 1) 1) the debug interface cannot operate faster than the overall system, therefore t 1 t sys . ?? ns 2) 2) under typical conditions, the interface ca n operate at transfer rates up to 20 mhz. tck high time t 2 sr 16 ?? ns tck low time t 3 sr 16 ?? ns tck clock rise time t 4 sr ?? 8ns tck clock fall time t 5 sr ?? 8ns tdi/tms setup to tck rising edge t 6 sr 6 ?? ns tdi/tms hold after tck rising edge t 7 sr 6 ?? ns tdo valid from tck falling edge (propagation delay) 3) 3) the falling edge on tck is used to generate the tdo timing. t 8 cc ? 32 36 ns tdo high impedance to valid output from tck falling edge 4)3) 4) the setup time for tdo is given implicitly by the tck cycle time. t 9 cc ? 32 36 ns tdo valid output to high impedance from tck falling edge 3) t 10 cc ? 32 36 ns tdo hold after tck falling edge 3) t 18 cc 5 ?? ns
xc2238m, xc2237m xc2000 family / base line electrical parameters data sheet 102 v2.1, 2011-07 figure 26 test clock timing (tck) figure 27 jtag timing mc_jtag_tck 0.9 v ddp 0.5 v ddp t 1 t 2 t 3 0.1 v ddp t 5 t 4 t 6 t 7 t 6 t 7 t 9 t 8 t 10 tck tms tdi tdo mc_jtag
xc2238m, xc2237m xc2000 family / base line package and reliability data sheet 103 v2.1, 2011-07 5 package and reliability the xc2000 family devices use the package type pg-lqfp (plastic green - low profile quad flat package). the following specifications must be regarded to ensure proper integration of the xc22 3xm in its target environment. 5.1 packaging these parameters specify the packaging rather than the silicon. package compatibility considerations the xc223xm is a member of the xc2000 fa mily of microcontrollers. it is also compatible to a certain ex tent with members of sim ilar families or subfamilies. each package is optimized for the device it houses. therefore, there may be slight differences between packages of the same pin-count but for different device types. in particular, the size of the exposed pad (if present) may vary. if different device types are considered or planned for an application, it must be ensured that the board layout fits all packages under consideration. table 36 package parameters (pg-lqfp-64-13) parameter symbol limit values unit notes min. max. power dissipation p diss ?1.0w? thermal resistance junction-ambient r ja ? 58 k/w no thermal via 1) 1) device mounted on a 2-layer jedec board (according to jesd 51-3) or a 4-layer board without thermal vias; exposed pad not soldered. 46 k/w 4-layer, no pad 2) 2) device mounted on a 4-layer jedec board (according to jesd 51-7) with thermal vias.
xc2238m, xc2237m xc2000 family / base line package and reliability data sheet 104 v2.1, 2011-07 package outlines figure 28 pg-lqfp-64-13 (plastic green thin quad flat package) all dimensions in mm. you can find complete information about infineon packages, packing and marking in our infineon internet page ?packages?: http://www.infineon.com/packages d 12 h 0.2 a-b d 4x a-b 0.2 64x 64x c d b 12 1 64 index marking 1) does not include plastic or metal protrusion of 0.25 max. per side 0.5 7.5 +0.07 0.2 -0.03 0.08 m a-b d c 0.08 ?.05 0.1 ?.05 1.4 1.6 max. ?.15 0.6 h a -0.06 +0.05 0.15 7? max. 64x c 10 1) 10 1) pg-lqfp-64-13-po v07
xc2238m, xc2237m xc2000 family / base line package and reliability data sheet 105 v2.1, 2011-07 5.2 thermal considerations when operating the xc223xm in a system, the total heat generated in the chip must be dissipated to the ambient environment to prevent overheating and the resulting thermal damage. the maximum heat that can be dissipated depends on the package and its integration into the target board. the ?thermal resistance r ja ? quantifies these parameters. the power dissipation must be limited so that the average junction temperature does not exceed 125 c. the difference between junction temperature and ambient temperature is determined by t = ( p int + p iostat + p iodyn ) r ja the internal power consumption is defined as p int = v ddp i ddp (switching current and leakage current). the static external power consumption caus ed by the output drivers is defined as p iostat = (( v ddp - v oh ) i oh ) + ( v ol i ol ) the dynamic external power consumpti on caused by the output drivers ( p iodyn ) depends on the capacitive load connected to the respective pins and their switching frequencies. if the total power dissipation for a given system configuration exceeds the defined limit, countermeasures must be taken to ensure proper system operation: ? reduce v ddp , if possible in the system ? reduce the system frequency ? reduce the number of output pins ? reduce the load on active output drivers
xc2238m, xc2237m xc2000 family / base line package and reliability data sheet 106 v2.1, 2011-07 5.3 quality declarations the operation lifetime of the xc223xm depends on the applied temperature profile in the application. for a typical example, please refer to table 38 ; for other profiles, please contact your infineon counterpart to calculate the specific lifetime within your application. table 37 quality parameters parameter symbol values unit note / test condition min. typ. max. operation lifetime t op cc ?? 20 a see table 38 and table 39 esd susceptibility according to human body model (hbm) v hbm sr ?? 2 000 v eia/jesd22- a114-b moisture sensitivity level msl cc ?? 3 ? jedec j-std-020c table 38 typical usage temperature profile operating time (sum = 20 years) operating temperat. notes 1 200 h t j = 150c normal operation 3 600 h t j = 125c normal operation 7 200 h t j = 110c normal operation 12 000 h t j = 100c normal operation 7 21 600 h t j = 0 10c, , 60 70c power reduction table 39 long time storage temperature profile operating time (sum = 20 years) operating temperat. notes 2 000 h t j = 150c normal operation 16 000 h t j = 125c normal operation 6 000 h t j = 110c normal operation 151 200 h t j 150c no operation
www.infineon.com published by infineon technologies ag


▲Up To Search▲   

 
Price & Availability of XC2237M-72FXXL

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X